共用方式為


SourceGeneratorContext.CancellationToken 屬性

定義

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

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

屬性值

適用於