RuleConfiguration RuleConfiguration RuleConfiguration Constructors

Definition

Overloads

RuleConfiguration(String) RuleConfiguration(String) RuleConfiguration(String)

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

RuleConfiguration(String, Boolean, SqlRuleProblemSeverity) RuleConfiguration(String, Boolean, SqlRuleProblemSeverity) RuleConfiguration(String, Boolean, SqlRuleProblemSeverity)

Creates a new RuleConfiguration for a rule.

RuleConfiguration(String) RuleConfiguration(String) 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 String String

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

RuleConfiguration(String, Boolean, SqlRuleProblemSeverity) RuleConfiguration(String, Boolean, SqlRuleProblemSeverity) 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 String String

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

enabled
Boolean Boolean Boolean

Is this rule enabled or disabled?

severity
SqlRuleProblemSeverity SqlRuleProblemSeverity SqlRuleProblemSeverity

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

Applies to