Partager via


Propriété PropertyCollection.Item (String)

Gets an object in the collection by name.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public ReadOnly Default Property Item ( _
    name As String _
) As Property 
    Get
'Utilisation
Dim instance As PropertyCollection 
Dim name As String 
Dim value As [Property]

value = instance(name)
public Property this[
    string name
] { get; }
public:
property Property^ default[String^ name] {
    Property^ get (String^ name);
}
member Item : Property
JScript prend en charge l'utilisation de propriétés indexées, mais pas la déclaration de nouvelles propriétés.

Paramètres

  • name
    Type : System.String
    A String value that specifies the name of the object in the collection.

Valeur de propriété

Type : Microsoft.SqlServer.Management.Smo.Property
An object value that represents the property.

Exemples

Utilisation de collections

Voir aussi

Référence

PropertyCollection Classe

Surcharge Item

Espace de noms Microsoft.SqlServer.Management.Smo

Autres ressources

Utilisation de collections