RuleManager.DisableRule Method
Disables rules of a particular type.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'宣言
Public Sub DisableRule ( _
ruleType As Type _
)
public void DisableRule(
Type ruleType
)
public:
void DisableRule(
Type^ ruleType
)
member DisableRule :
ruleType:Type -> unit
public function DisableRule(
ruleType : Type
)
Parameters
- ruleType
Type: System.Type
The type of rule to disable.
Remarks
When a rule is disabled, it cannot be raised.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.