CodeAnalysisService.GetRules Method
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.
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