次の方法で共有


Policy.Enabled プロパティ

ポリシーが有効かどうかを示す Boolean 値を取得または設定します。

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

構文

'宣言
<SfcPropertyAttribute(SfcPropertyFlags.Required)> _
Public Property Enabled As Boolean 
    Get 
    Set
'使用
Dim instance As Policy 
Dim value As Boolean 

value = instance.Enabled

instance.Enabled = value
[SfcPropertyAttribute(SfcPropertyFlags.Required)]
public bool Enabled { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Required)]
public:
property bool Enabled {
    bool get ();
    void set (bool value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Required)>]
member Enabled : bool with get, set
function get Enabled () : boolean 
function set Enabled (value : boolean)

プロパティ値

型: System.Boolean
ポリシーが有効かどうかを示す Boolean オブジェクト値です。 True の場合、ポリシーは有効です。False (既定値) の場合、ポリシーは無効です。

使用例

プロパティの設定

関連項目

参照

Policy クラス

Microsoft.SqlServer.Management.Dmf 名前空間