Service.Type Property

Definition

获取服务类型,例如 Microsoft Search 服务、SQL Server 代理服务或 SQL Server 服务。Gets the type of service, such as Microsoft Search service, SQL Server Agent service, or SQL Server service.

public:
 property Microsoft::SqlServer::Management::Smo::Wmi::ManagedServiceType Type { Microsoft::SqlServer::Management::Smo::Wmi::ManagedServiceType get(); };
public Microsoft.SqlServer.Management.Smo.Wmi.ManagedServiceType Type { get; }
member this.Type : Microsoft.SqlServer.Management.Smo.Wmi.ManagedServiceType
Public ReadOnly Property Type As ManagedServiceType

Property Value

ManagedServiceType

一个 ManagedServiceType 对象,该对象指定 SQL Server 服务的类型。A ManagedServiceType object that specifies the type of SQL Server service.

Examples

使用 WMI 提供程序管理服务和网络设置Managing Services and Network Settings by Using WMI Provider

Applies to