ServiceCollection.Item[] Propriété

Définition

Obtient un objet Service dans la collection par nom ou par numéro d'index.

Surcharges

Item[Int32]

Obtient un objet Service dans la collection par numéro d’index.

Item[String]

Obtient un objet Service dans la collection par nom.

Item[Int32]

Obtient un objet Service dans la collection par numéro d’index.

public:
 property Microsoft::SqlServer::Management::Smo::Wmi::Service ^ default[int] { Microsoft::SqlServer::Management::Smo::Wmi::Service ^ get(int index); };
public Microsoft.SqlServer.Management.Smo.Wmi.Service this[int index] { get; }
member this.Item(int) : Microsoft.SqlServer.Management.Smo.Wmi.Service
Default Public ReadOnly Property Item(index As Integer) As Service

Paramètres

index
Int32

Valeur Int32 qui spécifie la position de l'objet Service dans la collection ServiceCollection.

Valeur de propriété

Valeur Service d’objet qui représente un service SQL Server.

Exemples

Utilisation de collections

S’applique à

Item[String]

Obtient un objet Service dans la collection par nom.

public:
 property Microsoft::SqlServer::Management::Smo::Wmi::Service ^ default[System::String ^] { Microsoft::SqlServer::Management::Smo::Wmi::Service ^ get(System::String ^ name); };
public Microsoft.SqlServer.Management.Smo.Wmi.Service this[string name] { get; }
member this.Item(string) : Microsoft.SqlServer.Management.Smo.Wmi.Service
Default Public ReadOnly Property Item(name As String) As Service

Paramètres

name
String

Valeur String qui spécifie le nom de l'objet Service dans la collection ServiceCollection.

Valeur de propriété

Valeur Service d’objet qui représente un service SQL Server.

Exemples

Utilisation de collections

S’applique à