Proprietà Service.AcceptsStop

Gets the Boolean property value that specifies whether the SQL Server service can be stopped.

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

Sintassi

'Dichiarazione
Public ReadOnly Property AcceptsStop As Boolean 
    Get
'Utilizzo
Dim instance As Service 
Dim value As Boolean 

value = instance.AcceptsStop
public bool AcceptsStop { get; }
public:
property bool AcceptsStop {
    bool get ();
}
member AcceptsStop : bool
function get AcceptsStop () : boolean

Valore proprietà

Tipo: System.Boolean
A Boolean value that specifies whether the SQL Server service can be stopped.If True, the service can be stopped.If False (default), the service cannot be stopped.

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