Share via


RuleSet.GetDiagnosticOptionsFromRulesetFile Method

Definition

Parses the ruleset file at the given rulesetFileFullPath and returns the following diagnostic options from the parsed file:

  1. A map of specificDiagnosticOptions from rule ID to ReportDiagnostic option.
  2. A global ReportDiagnostic option for all rules in the ruleset file.
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

Parameters

rulesetFileFullPath
String
specificDiagnosticOptions
Dictionary<String,ReportDiagnostic>

Returns

Applies to