RuleSet.GetDiagnosticOptionsFromRulesetFile 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
分析给定 rulesetFileFullPath
位置的规则集文件,并从分析的文件返回以下诊断选项:
- 从规则 ID 到ReportDiagnostic选项的
specificDiagnosticOptions
映射。 - 规则集文件中所有规则的全局 ReportDiagnostic 选项。
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
参数
- rulesetFileFullPath
- String
- specificDiagnosticOptions
- Dictionary<String,ReportDiagnostic>