共用方式為


Compilation.GetMethodBodyDiagnostics(CancellationToken) 方法

定義

取得在分析方法主體和欄位初始化運算式期間產生的診斷。

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

參數

cancellationToken
CancellationToken

傳回

適用於