Partager via


ServiceState Enumeration

The ServiceState enumeration contains values that are used to specify the status of the SQL Server service.

Espace de noms: Microsoft.SqlServer.Management.Smo.Wmi
Assembly: Microsoft.SqlServer.WmiEnum (in microsoft.sqlserver.wmienum.dll)

Syntaxe

'Déclaration
Public Enumeration ServiceState
public enum ServiceState
public enum class ServiceState
public enum ServiceState
public enum ServiceState

Members

Member name Description
ContinuePending The SQL Server service is waiting to continue.
Paused The SQL Server service is paused.
PausePending The SQL Server service is waiting to pause.
Running The SQL Server service is running.
StartPending The SQL Server service is waiting to start.
Stopped The SQL Server service is stopped.
StopPending The SQL Server service is waiting to stop.
Unknown The status of the SQL Server service is unknown.

Notes

The ServiceState enumerated class is served by the ServiceState property.

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Plateformes

Plateformes de développement

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Plateformes cibles

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Voir aussi

Référence

Microsoft.SqlServer.Management.Smo.Wmi Namespace