Compartilhar via


Propriedade do RDL Service.ErrorControl

Gets the severity of the error if the SQL Server service fails to start during startup.

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

Sintaxe

'Declaração
Public ReadOnly Property ErrorControl As ServiceErrorControl 
    Get
'Uso
Dim instance As Service 
Dim value As ServiceErrorControl 

value = instance.ErrorControl
public ServiceErrorControl ErrorControl { get; }
public:
property ServiceErrorControl ErrorControl {
    ServiceErrorControl get ();
}
member ErrorControl : ServiceErrorControl
function get ErrorControl () : ServiceErrorControl

Valor da propriedade

Tipo: ServiceErrorControl
A ServiceErrorControl object value that specifies the severity of the error if the service fails to start during Microsoft SQL Server startup.

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