Właściwość Policy.Enabled
Pobiera lub zestaw Boolean wartość określająca, czy jest włączona zasada.
Przestrzeń nazw: Microsoft.SqlServer.Management.Dmf
Zestaw: Microsoft.SqlServer.Dmf (w Microsoft.SqlServer.Dmf.dll)
Składnia
'Deklaracja
<SfcPropertyAttribute(SfcPropertyFlags.Required)> _
Public Property Enabled As Boolean
Get
Set
'Użycie
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)
Wartość właściwości
Typ: System.Boolean
A Boolean obiektu wartość określająca, czy jest włączona zasada.
Jeśli True, jest włączona.W przeciwnym razie False (domyślnie).