CodeAnalysisService.GetRules Método

Definición

Obtiene las reglas cargadas por el servicio. Se puede consultar el estado actual de estas reglas (habilitada, deshabilitada, gravedad del problema de regla), como puede obtener información sobre la regla, como su identificador y metadatos.

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)

Devoluciones

lista de RuleDescriptor objetos que representan reglas detectadas por el servicio, sus metadatos y estado

Comentarios

Para detectar problemas al cargar reglas, GetRuleLoadErrors() se debe llamar a

Se aplica a