Service.Type プロパティ

Microsoft Search サービス、SQL Server エージェント サービス、SQL Server サービスなど、サービスの種類を取得します。

名前空間:  Microsoft.SqlServer.Management.Smo.Wmi
アセンブリ:  Microsoft.SqlServer.SqlWmiManagement (Microsoft.SqlServer.SqlWmiManagement.dll)

構文

'宣言
Public ReadOnly Property Type As ManagedServiceType 
    Get
'使用
Dim instance As Service 
Dim value As ManagedServiceType 

value = instance.Type
public ManagedServiceType Type { get; }
public:
property ManagedServiceType Type {
    ManagedServiceType get ();
}
member Type : ManagedServiceType
function get Type () : ManagedServiceType

プロパティ値

型: ManagedServiceType
SQL Server サービスの種類を示す ManagedServiceType オブジェクトです。

使用例

WMI プロバイダーを使用したサービスの管理とネットワーク設定

関連項目

参照

Service クラス

Microsoft.SqlServer.Management.Smo.Wmi 名前空間

その他の技術情報

WMI and SQL Server

SQL Server データベース エンジンへの接続