Proprietà Service.Type

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

Spazio dei nomi  Microsoft.SqlServer.Management.Smo.Wmi
Assembly:  Microsoft.SqlServer.SqlWmiManagement (in Microsoft.SqlServer.SqlWmiManagement.dll)

Sintassi

'Dichiarazione
Public ReadOnly Property Type As ManagedServiceType 
    Get
'Utilizzo
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

Valore proprietà

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

Esempi

Gestione di servizi e di impostazioni di rete tramite il provider WMI

Vedere anche

Riferimento

Service Classe

Spazio dei nomi Microsoft.SqlServer.Management.Smo.Wmi

Altre risorse

WMI and SQL Server

Connessione al Motore di database di SQL Server