CancellationTokenSource.Token 屬性

定義

取得與這個 CancellationToken 關聯的 CancellationTokenSourceGets the CancellationToken associated with this 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

屬性值

例外狀況

已處置語彙基元來源。The token source has been disposed.

適用於

另請參閱