共用方式為


GeneratorPostInitializationContext.CancellationToken 屬性

定義

CancellationToken 可檢查以查看 PostInitialization 是否應該取消。

public System.Threading.CancellationToken CancellationToken { get; }
member this.CancellationToken : System.Threading.CancellationToken
Public ReadOnly Property CancellationToken As CancellationToken

屬性值

適用於