CodeAnalysisRuleSettings.TryGetRuleConfiguration(String, RuleConfiguration) CodeAnalysisRuleSettings.TryGetRuleConfiguration(String, RuleConfiguration) CodeAnalysisRuleSettings.TryGetRuleConfiguration(String, RuleConfiguration) Method

Definition

Tries to find the RuleConfiguration that matches the specified ruleId.

public bool TryGetRuleConfiguration (string ruleId, out Microsoft.SqlServer.Dac.CodeAnalysis.RuleConfiguration config);
member this.TryGetRuleConfiguration : string *  -> bool
Public Function TryGetRuleConfiguration (ruleId As String, ByRef config As RuleConfiguration) As Boolean

Parameters

ruleId
String String String

The fully qualified rule ID

config
RuleConfiguration RuleConfiguration RuleConfiguration

out RuleConfiguration, or null if none matches the ruleId

Returns

true if a configuration matching the specified ruleId was found, false otherwise

Applies to