SyntaxTreeOptionsProvider.TryGetDiagnosticValue 方法

定义

获取给定树中给定诊断标识符的诊断严重性设置。

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

参数

tree
SyntaxTree
diagnosticId
String
cancellationToken
CancellationToken
severity
ReportDiagnostic

返回

适用于