共用方式為


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

傳回

適用於