共用方式為


SyntaxTreeOptionsProvider.TryGetGlobalDiagnosticValue 方法

定義

取得指定診斷識別碼的全域診斷嚴重性

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

參數

diagnosticId
String
cancellationToken
CancellationToken
severity
ReportDiagnostic

傳回

適用於