Partager via


Propriété ServiceCollection.Item (Int32)

Gets a Service object in the collection by index number.

Espace de noms :  Microsoft.SqlServer.Management.Smo.Wmi
Assembly :  Microsoft.SqlServer.SqlWmiManagement (en Microsoft.SqlServer.SqlWmiManagement.dll)

Syntaxe

'Déclaration
Public ReadOnly Default Property Item ( _
    index As Integer _
) As Service 
    Get
'Utilisation
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
JScript prend en charge l'utilisation de propriétés indexées, mais pas la déclaration de nouvelles propriétés.

Paramètres

Valeur de propriété

Type : Microsoft.SqlServer.Management.Smo.Wmi.Service
A Service object value that represents a SQL Server service.

Exemples

Utilisation de collections

Voir aussi

Référence

ServiceCollection Classe

Surcharge Item

Espace de noms Microsoft.SqlServer.Management.Smo.Wmi