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

返回

适用于