Compartir a través de


Rule.IsEnabled Property

Gets or sets whether the rule is enabled. Normally true by default, but you can initialize it to false in the RuleOn attribute.

Namespace:  Microsoft.VisualStudio.Modeling
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

'Declaración
Public Property IsEnabled As Boolean
    Get
    Set
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)

Property Value

Type: System.Boolean
true if the rule is enabled; otherwise, false.

.NET Framework Security

See Also

Reference

Rule Class

Microsoft.VisualStudio.Modeling Namespace

RuleOnAttribute