Compartir a través de


ServiceCollection.Item Propiedad (Int32)

Gets a Service object in the collection by index number.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo.Wmi
Ensamblado:  Microsoft.SqlServer.SqlWmiManagement (en Microsoft.SqlServer.SqlWmiManagement.dll)

Sintaxis

'Declaración
Public ReadOnly Default Property Item ( _
    index As Integer _
) As Service 
    Get
'Uso
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 admite el uso de propiedades indizadas, pero no la declaración de otras nuevas.

Parámetros

Valor de la propiedad

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

Ejemplos

Usar colecciones

Vea también

Referencia

ServiceCollection Clase

Sobrecarga de Item

Espacio de nombres Microsoft.SqlServer.Management.Smo.Wmi