Sdílet prostřednictvím


SyntaxTreeOptionsProvider.TryGetDiagnosticValue Method

Definition

Get diagnostic severity setting for a given diagnostic identifier in a given tree.

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

Parameters

tree
SyntaxTree
diagnosticId
String
cancellationToken
CancellationToken
severity
ReportDiagnostic

Returns

Applies to