Compartilhar via


SyntaxTree.WithDiagnosticOptions Método

Definição

Cuidado

Obsolete due to performance problems, use CompilationOptions.SyntaxTreeOptionsProvider instead

Retorna uma nova árvore cujo DiagnosticOptions valor é especificado e outras propriedades são copiadas da árvore atual.

public virtual Microsoft.CodeAnalysis.SyntaxTree WithDiagnosticOptions (System.Collections.Immutable.ImmutableDictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic> options);
[System.Obsolete("Obsolete due to performance problems, use CompilationOptions.SyntaxTreeOptionsProvider instead", false)]
public virtual Microsoft.CodeAnalysis.SyntaxTree WithDiagnosticOptions (System.Collections.Immutable.ImmutableDictionary<string,Microsoft.CodeAnalysis.ReportDiagnostic> options);
abstract member WithDiagnosticOptions : System.Collections.Immutable.ImmutableDictionary<string, Microsoft.CodeAnalysis.ReportDiagnostic> -> Microsoft.CodeAnalysis.SyntaxTree
override this.WithDiagnosticOptions : System.Collections.Immutable.ImmutableDictionary<string, Microsoft.CodeAnalysis.ReportDiagnostic> -> Microsoft.CodeAnalysis.SyntaxTree
[<System.Obsolete("Obsolete due to performance problems, use CompilationOptions.SyntaxTreeOptionsProvider instead", false)>]
abstract member WithDiagnosticOptions : System.Collections.Immutable.ImmutableDictionary<string, Microsoft.CodeAnalysis.ReportDiagnostic> -> Microsoft.CodeAnalysis.SyntaxTree
override this.WithDiagnosticOptions : System.Collections.Immutable.ImmutableDictionary<string, Microsoft.CodeAnalysis.ReportDiagnostic> -> Microsoft.CodeAnalysis.SyntaxTree
Public Overridable Function WithDiagnosticOptions (options As ImmutableDictionary(Of String, ReportDiagnostic)) As SyntaxTree

Parâmetros

options
ImmutableDictionary<String,ReportDiagnostic>

Um mapeamento da ID de diagnóstico para o nível de relatório de diagnóstico. A ID de diagnóstico pode diferenciar maiúsculas de minúsculas, dependendo do idioma.

Retornos

Atributos

Aplica-se a