Service.ServiceState 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得 SQL Server 服務的狀態,例如 [執行中]、[已停止] 或 [已暫停]。
public:
property Microsoft::SqlServer::Management::Smo::Wmi::ServiceState ServiceState { Microsoft::SqlServer::Management::Smo::Wmi::ServiceState get(); };
public Microsoft.SqlServer.Management.Smo.Wmi.ServiceState ServiceState { get; }
member this.ServiceState : Microsoft.SqlServer.Management.Smo.Wmi.ServiceState
Public ReadOnly Property ServiceState As ServiceState
屬性值
- Microsoft.SqlServer.Management.Smo.Wmi.ServiceState
Microsoft.SqlServer.Management.Smo.Wmi.ServiceState物件值,指定 SQL Server 服務的狀態。