Właściwość Item (String)
Pobiera Service obiektu kolekcja według nazwy.
Przestrzeń nazw: Microsoft.SqlServer.Management.Smo.Wmi
Zestaw: Microsoft.SqlServer.SqlWmiManagement (w Microsoft.SqlServer.SqlWmiManagement.dll)
Syntax
'Deklaracja
Public ReadOnly Default Property Item ( _
name As String _
) As Service
Get
'Użycie
Dim instance As ServiceCollection
Dim name As String
Dim value As Service
value = instance(name)
public Service this[
string name
] { get; }
public:
property Service^ default[String^ name] {
Service^ get (String^ name);
}
member Item : Service
JScript supports the use of indexed properties, but not the declaration of new ones.
Parameters
- name
Typ: System. . :: . .String
A String wartość, która określa nazwę 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