Share via


Classe cancellation_token_registration

La classe cancellation_token_registration rappresenta una notifica di callback da cancellation_token. Quando il metodo register in cancellation_token viene utilizzato per ricevere la notifica dell'annullamento, un oggetto cancellation_token_registration viene restituito al callback come handle, in modo che da parte del chiamante possa essere richiesto di non eseguire più un callback specifico tramite l'utilizzo del metodo deregister.

Sintassi

class cancellation_token_registration;

Membri

Costruttori pubblici

Nome Descrizione
cancellation_token_registration
Distruttore ~cancellation_token_registration

Operatori pubblici

Nome Descrizione
operator!=
operator=
operator==

Gerarchia di ereditarietà

cancellation_token_registration

Requisiti

Intestazione: pplcancellation_token.h

Spazio dei nomi: Concurrency

~cancellation_token_registration

~cancellation_token_registration();

cancellation_token_registration

cancellation_token_registration();

cancellation_token_registration(const cancellation_token_registration& _Src);

cancellation_token_registration(cancellation_token_registration&& _Src);

Parametri

_Src
Oggetto cancellation_token_registration da copiare o spostare.

operator!=

bool operator!= (const cancellation_token_registration& _Rhs) const;

Parametri

_Rhs
Oggetto cancellation_token_registration da confrontare.

Valore restituito

operator=

cancellation_token_registration& operator= (const cancellation_token_registration& _Src);

cancellation_token_registration& operator= (cancellation_token_registration&& _Src);

Parametri

_Src
Oggetto cancellation_token_registration da assegnare.

Valore restituito

operator==

bool operator== (const cancellation_token_registration& _Rhs) const;

Parametri

_Rhs
Oggetto cancellation_token_registration da confrontare.

Valore restituito

Vedi anche

Spazio dei nomi concurrency