共用方式為


CSharpCompilation.GetDeclarationDiagnostics(CancellationToken) 方法

定義

取得符號宣告標頭期間產生的診斷。 例如,存取子或方法主體沒有診斷。

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

參數

cancellationToken
CancellationToken

傳回

適用於