共用方式為


cancellation_token::deregister_callback 方法

根據註冊時傳回的 cancellation_token_registration 物件,移除先前透過 register 方法註冊的回呼。

void deregister_callback(
   const cancellation_token_registration& _Registration
) const;

參數

  • _Registration
    cancellation_token_registration 物件,對應於要取消註冊的回呼。 這個語彙基元必須已經由 register 方法呼叫所傳回。

需求

標頭: pplcancellation_token.h

**命名空間:**concurrency

請參閱

參考

cancellation_token 類別