Service.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.
예
WMI 공급자를 사용하여 서비스 및 네트워크 설정 관리
참고 항목
참조
Microsoft.SqlServer.Management.Smo.Wmi 네임스페이스