SuppressionAnalysisContext.ReportedDiagnostics 属性

定义

为编译报告分析器和/或编译器非错误诊断。 每个DiagnosticSuppressor仅接收在其 中SupportedSuppressions声明可取消其 ID 的诊断。 这可能是完整报告诊断集的子集,作为支持增量和部分分析方案的优化。 如果满足以下 所有 条件,诊断被诊断视为可抑制的:1.诊断尚未通过杂注/抑制消息属性在源中被禁止。 2. 诊断的 DefaultSeverity 不是 Error。 3. 诊断未使用 NotConfigurable 自定义标记进行标记。

public System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostic> ReportedDiagnostics { get; }
member this.ReportedDiagnostics : System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostic>
Public ReadOnly Property ReportedDiagnostics As ImmutableArray(Of Diagnostic)

属性值

适用于