RuleConfiguration Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.