共用方式為


SyntaxTree.DiagnosticOptions 屬性

定義

警告

Obsolete due to performance problems, use CompilationOptions.SyntaxTreeOptionsProvider instead

指定此樹狀結構中每個警告之自訂行為的選項。

public virtual System.Collections.Immutable.ImmutableDictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic> DiagnosticOptions { get; }
[System.Obsolete("Obsolete due to performance problems, use CompilationOptions.SyntaxTreeOptionsProvider instead", false)]
public virtual System.Collections.Immutable.ImmutableDictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic> DiagnosticOptions { get; }
member this.DiagnosticOptions : System.Collections.Immutable.ImmutableDictionary<string, Microsoft.CodeAnalysis.ReportDiagnostic>
[<System.Obsolete("Obsolete due to performance problems, use CompilationOptions.SyntaxTreeOptionsProvider instead", false)>]
member this.DiagnosticOptions : System.Collections.Immutable.ImmutableDictionary<string, Microsoft.CodeAnalysis.ReportDiagnostic>
Public Overridable ReadOnly Property DiagnosticOptions As ImmutableDictionary(Of String, ReportDiagnostic)

屬性值

從診斷識別碼到診斷報告層級的對應。 視語言而定,診斷識別碼字串可能不區分大小寫。

屬性

適用於