Share via


CodeAnalysisService.GetRules Method

Definition

Gets the rules loaded by the service. The current state of these rules (enabled, disabled, rule problem severity) can be queried, as can information about the rule such as its ID and metadata.

public System.Collections.Generic.IList<Microsoft.SqlServer.Dac.CodeAnalysis.RuleDescriptor> GetRules ();
member this.GetRules : unit -> System.Collections.Generic.IList<Microsoft.SqlServer.Dac.CodeAnalysis.RuleDescriptor>
Public Function GetRules () As IList(Of RuleDescriptor)

Returns

list of RuleDescriptor objects representing rules discovered by the service, their metadata and status

Remarks

To discover any problems loading rules, GetRuleLoadErrors() should be called

Applies to