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
- index
Typ: System. . :: . .Int32
Int32 Wartość, która określa położenie ServerRole obiekt w ServerRoleCollection kolekcja.
Wartość właściwości
Typ: Microsoft.SqlServer.Management.Smo. . :: . .ServerRole
A ServerRole wartość obiektu, który reprezentuje rolę serwera.
Zobacz także