共用方式為


PauseTokenSource.CancellationToken 屬性

定義

要在暫停工作時使用的選擇性取消標記

public:
 property System::Threading::CancellationToken CancellationToken { System::Threading::CancellationToken get(); void set(System::Threading::CancellationToken value); };
public System.Threading.CancellationToken CancellationToken { get; set; }
member this.CancellationToken : System.Threading.CancellationToken with get, set
Public Property CancellationToken As CancellationToken

屬性值

備註

CancellationToken只有在第一次叫用 方法時Pause()指派的 才會用於取消暫停的目的

適用於