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 服务的状态。