ServiceState プロパティ
実行、停止、一時停止などの SQL Server サービスの状態を取得します。
名前空間: 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
SQL Server サービスの状態を示す ServiceState オブジェクトの値です。