共用方式為


Compilation.GetDeclarationDiagnostics(CancellationToken) 方法

定義

取得符號宣告期間產生的診斷。

public abstract System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostic> GetDeclarationDiagnostics (System.Threading.CancellationToken cancellationToken = default);
abstract member GetDeclarationDiagnostics : System.Threading.CancellationToken -> System.Collections.Immutable.ImmutableArray<Microsoft.CodeAnalysis.Diagnostic>
Public MustOverride Function GetDeclarationDiagnostics (Optional cancellationToken As CancellationToken = Nothing) As ImmutableArray(Of Diagnostic)

參數

cancellationToken
CancellationToken

傳回

適用於