SyntaxTreeOptionsProvider.TryGetDiagnosticValue Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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