Właściwość ServiceCollection.Item (Int32)
Pobiera Service obiektu kolekcja według numeru indeksu.
Przestrzeń nazw: Microsoft.SqlServer.Management.Smo.Wmi
Zestaw: Microsoft.SqlServer.SqlWmiManagement (w Microsoft.SqlServer.SqlWmiManagement.dll)
Składnia
'Deklaracja
Public ReadOnly Default Property Item ( _
index As Integer _
) As Service
Get
'Użycie
Dim instance As ServiceCollection
Dim index As Integer
Dim value As Service
value = instance(index)
public Service this[
int index
] { get; }
public:
property Service^ default[int index] {
Service^ get (int index);
}
member Item : Service
Język JScript obsługuje używanie indeksowanych właściwości, ale nie obsługuje deklarowania nowych.
Parametry
- index
Typ: System.Int32
Int32 Wartość, która określa położenie Service obiekt w ServiceCollection kolekcja.
Wartość właściwości
Typ: Microsoft.SqlServer.Management.Smo.Wmi.Service
A Service wartość obiektu, który reprezentuje SQL Server usługa.
Zobacz także