共用方式為


RuleOnAttribute.InitiallyDisabled Property

If true, the rule must be explicitly enabled using IsEnabled.

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

Syntax

'宣告
Public Property InitiallyDisabled As Boolean
    Get
    Set
public bool InitiallyDisabled { get; set; }
public:
property bool InitiallyDisabled {
    bool get ();
    void set (bool value);
}
member InitiallyDisabled : bool with get, set
function get InitiallyDisabled () : boolean
function set InitiallyDisabled (value : boolean)

Property Value

Type: System.Boolean
true if the rule is disabled by default; otherwise, false.

Remarks

When a rule is disabled, it is not triggered.

.NET Framework Security

See Also

Reference

RuleOnAttribute Class

Microsoft.VisualStudio.Modeling Namespace