Share via


RuleConfiguration Constructors

Definition

Overloads

RuleConfiguration(String)

Creates a new RuleConfiguration for a rule, using the default settings for Enabled and Severity.

RuleConfiguration(String, Boolean, SqlRuleProblemSeverity)

Creates a new RuleConfiguration for a rule.

RuleConfiguration(String)

Creates a new RuleConfiguration for a rule, using the default settings for Enabled and Severity.

public RuleConfiguration (string ruleId);
new Microsoft.SqlServer.Dac.CodeAnalysis.RuleConfiguration : string -> Microsoft.SqlServer.Dac.CodeAnalysis.RuleConfiguration
Public Sub New (ruleId As String)

Parameters

ruleId
String

ID of the rule this configuration specifies. Cannot be null or whitespace.

Applies to

RuleConfiguration(String, Boolean, SqlRuleProblemSeverity)

Creates a new RuleConfiguration for a rule.

public RuleConfiguration (string ruleId, bool enabled, Microsoft.SqlServer.Dac.CodeAnalysis.SqlRuleProblemSeverity severity);
new Microsoft.SqlServer.Dac.CodeAnalysis.RuleConfiguration : string * bool * Microsoft.SqlServer.Dac.CodeAnalysis.SqlRuleProblemSeverity -> Microsoft.SqlServer.Dac.CodeAnalysis.RuleConfiguration
Public Sub New (ruleId As String, enabled As Boolean, severity As SqlRuleProblemSeverity)

Parameters

ruleId
String

ID of the rule this configuration specifies. Cannot be null or whitespace.

enabled
Boolean

Is this rule enabled or disabled?

severity
SqlRuleProblemSeverity

What is the severity of problems identified by this rule? Should be either Warning or Error.

Applies to