Partager via


Propriété Service.ErrorControl

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

Espace de noms :  Microsoft.SqlServer.Management.Smo.Wmi
Assembly :  Microsoft.SqlServer.SqlWmiManagement (en Microsoft.SqlServer.SqlWmiManagement.dll)

Syntaxe

'Déclaration
Public ReadOnly Property ErrorControl As ServiceErrorControl 
    Get
'Utilisation
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

Valeur de propriété

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

Exemples

Gestion des services et des paramètres réseau à l'aide du fournisseur WMI

Voir aussi

Référence

Service Classe

Espace de noms Microsoft.SqlServer.Management.Smo.Wmi

Autres ressources

WMI and SQL Server

Connexion au moteur de base de données SQL Server