Partilhar via


SyntaxTreeOptionsProvider.TryGetDiagnosticValue Método

Definição

Obtenha a configuração de gravidade do diagnóstico para um determinado identificador de diagnóstico em uma determinada árvore.

public abstract bool TryGetDiagnosticValue (Microsoft.CodeAnalysis.SyntaxTree tree, string diagnosticId, System.Threading.CancellationToken cancellationToken, out Microsoft.CodeAnalysis.ReportDiagnostic severity);
abstract member TryGetDiagnosticValue : Microsoft.CodeAnalysis.SyntaxTree * string * System.Threading.CancellationToken * ReportDiagnostic -> bool
Public MustOverride Function TryGetDiagnosticValue (tree As SyntaxTree, diagnosticId As String, cancellationToken As CancellationToken, ByRef severity As ReportDiagnostic) As Boolean

Parâmetros

tree
SyntaxTree
diagnosticId
String
cancellationToken
CancellationToken
severity
ReportDiagnostic

Retornos

Aplica-se a