Compartir a través de


Service.Type Propiedad

Gets the type of service, such as Microsoft Search service, SQL Server Agent service, or SQL Server service.

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

Sintaxis

'Declaración
Public ReadOnly Property Type As ManagedServiceType 
    Get
'Uso
Dim instance As Service 
Dim value As ManagedServiceType 

value = instance.Type
public ManagedServiceType Type { get; }
public:
property ManagedServiceType Type {
    ManagedServiceType get ();
}
member Type : ManagedServiceType
function get Type () : ManagedServiceType

Valor de la propiedad

Tipo: ManagedServiceType
A ManagedServiceType object that specifies the type of SQL Server service.

Ejemplos

Administrar servicios y configuración de red utilizando el proveedor WMI

Vea también

Referencia

Service Clase

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

Otros recursos

WMI and SQL Server

Conectar al Motor de base de datos de SQL Server