CancellationTokenSource.Token 属性

定义

获取与此 CancellationToken 关联的 CancellationTokenSource

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

属性值

CancellationToken

与此 CancellationToken 关联的 CancellationTokenSource

例外

已释放标记源。

适用于

另请参阅