Service.Type 屬性

定義

取得服務的類型,例如 Microsoft Search 服務、SQL Server Agent 服務或 SQL Server 服務。

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

屬性值

Microsoft.SqlServer.Management.Smo.Wmi.ManagedServiceType

Microsoft.SqlServer.Management.Smo.Wmi.ManagedServiceType物件,指定 SQL Server 服務的類型。

範例

使用 WMI 提供者管理服務和網路設定

適用於