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
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.