Proprietà Service.StartMode

Gets or sets the method by which the SQL Server service is started.

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

Sintassi

'Dichiarazione
Public Property StartMode As ServiceStartMode 
    Get 
    Set
'Utilizzo
Dim instance As Service 
Dim value As ServiceStartMode 

value = instance.StartMode

instance.StartMode = value
public ServiceStartMode StartMode { get; set; }
public:
property ServiceStartMode StartMode {
    ServiceStartMode get ();
    void set (ServiceStartMode value);
}
member StartMode : ServiceStartMode with get, set
function get StartMode () : ServiceStartMode 
function set StartMode (value : ServiceStartMode)

Valore proprietà

Tipo: ServiceStartMode
A ServiceStartMode object value that specifies the method by which the service is started.

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