RuleSet.GetDiagnosticOptionsFromRulesetFile 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.
Parses the ruleset file at the given rulesetFileFullPath
and returns the following diagnostic options from the parsed file:
- A map of
specificDiagnosticOptions
from rule ID to ReportDiagnostic option. - 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
Współpracuj z nami w serwisie GitHub
Źródło tej zawartości można znaleźć w witrynie GitHub, gdzie można również tworzyć i przeglądać problemy i żądania ściągnięcia. Więcej informacji znajdziesz w naszym przewodniku dla współtwórców.