SourceGeneratorContext.CancellationToken 属性

定义

CancellationToken可以检查该生成是否应取消。

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

属性值

适用于