Udostępnij przez


Właściwość Item (Int32)

Pobiera ServerRole obiektu kolekcja według numeru indeksu.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Smo
Zestaw:  Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)

Syntax

'Deklaracja
Public ReadOnly Default Property Item ( _
    index As Integer _
) As ServerRole
    Get
'Użycie
Dim instance As ServerRoleCollection
Dim index As Integer
Dim value As ServerRole

value = instance(index)
public ServerRole this[
    int index
] { get; }
public:
property ServerRole^ default[int index] {
    ServerRole^ get (int index);
}
member Item : ServerRole
JScript supports the use of indexed properties, but not the declaration of new ones.

Parameters

Wartość właściwości

Typ: Microsoft.SqlServer.Management.Smo. . :: . .ServerRole
A ServerRole wartość obiektu, który reprezentuje rolę serwera.