다음을 통해 공유


ServiceState 속성

Gets the state of the SQL Server service, such as running, stopped, or paused.

네임스페이스:  Microsoft.SqlServer.Management.Smo.Wmi
어셈블리:  Microsoft.SqlServer.SqlWmiManagement.dll의 Microsoft.SqlServer.SqlWmiManagement

구문

‘선언
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.