Partager via


Propriété PropertyCollection.Item (Int32)

Gets an object in the collection by index number.

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

Syntaxe

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

value = instance(index)
public Property this[
    int index
] { get; }
public:
property Property^ default[int index] {
    Property^ get (int index);
}
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

  • index
    Type : System.Int32
    An Int32 value that specifies the position 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