Свойство ServiceState
Gets the state of the SQL Server service, such as running, stopped, or paused.
Пространство имен: Microsoft.SqlServer.Management.Smo.Wmi
Сборка: Microsoft.SqlServer.SqlWmiManagement (в Microsoft.SqlServer.SqlWmiManagement.dll)
Синтаксис
'Декларация
Public ReadOnly Property ServiceState As ServiceState
Get
'Применение
Dim instance As Service
Dim value As ServiceState
value = instance.ServiceState
public ServiceState ServiceState { get; }
public:
property ServiceState ServiceState {
ServiceState get ();
}
member ServiceState : ServiceState
function get ServiceState () : ServiceState
Значение свойства
Тип ServiceState
A ServiceState object value that specifies the state of the SQL Server service.
См. также