Partilhar via


RuleSet.GetDiagnosticOptionsFromRulesetFile Método

Definição

Analisa o arquivo de conjunto de regras no determinado rulesetFileFullPath e retorna as seguintes opções de diagnóstico do arquivo analisado:

  1. Um mapa da ID da specificDiagnosticOptions regra para a ReportDiagnostic opção.
  2. Uma opção global ReportDiagnostic para todas as regras no arquivo de conjunto de regras.
public:
 static Microsoft::CodeAnalysis::ReportDiagnostic GetDiagnosticOptionsFromRulesetFile(System::String ^ rulesetFileFullPath, [Runtime::InteropServices::Out] System::Collections::Generic::Dictionary<System::String ^, Microsoft::CodeAnalysis::ReportDiagnostic> ^ % specificDiagnosticOptions);
public static Microsoft.CodeAnalysis.ReportDiagnostic GetDiagnosticOptionsFromRulesetFile (string rulesetFileFullPath, out System.Collections.Generic.Dictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic> specificDiagnosticOptions);
public static Microsoft.CodeAnalysis.ReportDiagnostic GetDiagnosticOptionsFromRulesetFile (string? rulesetFileFullPath, out System.Collections.Generic.Dictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic> specificDiagnosticOptions);
static member GetDiagnosticOptionsFromRulesetFile : string * Dictionary -> Microsoft.CodeAnalysis.ReportDiagnostic
Public Shared Function GetDiagnosticOptionsFromRulesetFile (rulesetFileFullPath As String, ByRef specificDiagnosticOptions As Dictionary(Of String, ReportDiagnostic)) As ReportDiagnostic

Parâmetros

rulesetFileFullPath
String
specificDiagnosticOptions
Dictionary<String,ReportDiagnostic>

Retornos

Aplica-se a