Compartilhar via


Propriedade do RDL Service.StartMode

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

Namespace:  Microsoft.SqlServer.Management.Smo.Wmi
Assembly:  Microsoft.SqlServer.SqlWmiManagement (em Microsoft.SqlServer.SqlWmiManagement.dll)

Sintaxe

'Declaração
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 da propriedade

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

Exemplos

Gerenciando serviços e configurações de rede através do provedor do WMI

Consulte também

Referência

Service Classe

Namespace Microsoft.SqlServer.Management.Smo.Wmi

Outros recursos

WMI and SQL Server

Conectando ao Mecanismo de Banco de Dados do SQL Server