ServiceCollection.Item Propiedad (String)
Gets a Service object in the collection by name.
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 ( _
name As String _
) As Service
Get
'Uso
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 admite el uso de propiedades indizadas, pero no la declaración de otras nuevas.
Parámetros
- name
Tipo: System.String
A String value that specifies the name of the Service object in the ServiceCollection collection.
Valor de la propiedad
Tipo: Microsoft.SqlServer.Management.Smo.Wmi.Service
A Service object value that represents a SQL Server service.