Sdílet prostřednictvím


Policy.Enabled Property

Gets or set the Boolean value that specifies whether the policy is enabled.

Namespace:  Microsoft.SqlServer.Management.Dmf
Assembly:  Microsoft.SqlServer.Dmf (in Microsoft.SqlServer.Dmf.dll)

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.Required)> _
Public Property Enabled As Boolean
    Get
    Set
'Usage
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)

Property Value

Type: System.Boolean
A Boolean object value that specifies whether the policy is enabled.
If True, the policy is enabled. Otherwise, False (default).

Remarks

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.