Compartir a través de


Service.StartMode Propiedad

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

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

Sintaxis

'Declaración
Public Property StartMode As ServiceStartMode 
    Get 
    Set
'Uso
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)

Valor de la propiedad

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

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