ServerProtocol.IsEnabled プロパティ

サーバー ネットワーク プロトコルが有効か無効かを示す Boolean プロパティを取得します。値の設定も可能です。

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

構文

'宣言
Public Property IsEnabled As Boolean 
    Get 
    Set
'使用
Dim instance As ServerProtocol 
Dim value As Boolean 

value = instance.IsEnabled

instance.IsEnabled = value
public bool IsEnabled { get; set; }
public:
property bool IsEnabled {
    bool get ();
    void set (bool value);
}
member IsEnabled : bool with get, set
function get IsEnabled () : boolean 
function set IsEnabled (value : boolean)

プロパティ値

型: System.Boolean
サーバー ネットワーク プロトコルが有効か無効かを示す Boolean 値です。True の場合、サーバー ネットワーク プロトコルは有効です。False (既定値) の場合、サーバー ネットワーク プロトコルは無効です。

使用例

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

関連項目

参照

ServerProtocol クラス

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

その他の技術情報

WMI and SQL Server

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