Freigeben über


Service.ErrorControl-Eigenschaft

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 (in Microsoft.SqlServer.SqlWmiManagement.dll)

Syntax

'Declaration
Public ReadOnly Property ErrorControl As ServiceErrorControl 
    Get
'Usage
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

Eigenschaftswert

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

Beispiele

Verwalten von Diensten und Netzwerkeinstellungen durch die Nutzung von WMI-Anbieter

Siehe auch

Verweis

Service Klasse

Microsoft.SqlServer.Management.Smo.Wmi-Namespace

Andere Ressourcen

WMI and SQL Server

Herstellen einer Verbindung zum SQL Server-Datenbankmodul