Share via


CodeAnalysisRuleSettings.TryGetRuleConfiguration 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 * RuleConfiguration -> bool
Public Function TryGetRuleConfiguration (ruleId As String, ByRef config As RuleConfiguration) As Boolean

Parameters

ruleId
String

The fully qualified rule ID

config
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