Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

cancellation_token_registration Class

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

The cancellation_token_registration class represents a callback notification from a cancellation_token. When the register method on a cancellation_token is used to receive notification of when cancellation occurs, a cancellation_token_registration object is returned as a handle to the callback so that the caller can request a specific callback no longer be made through use of the deregister method.

class cancellation_token_registration;

Public Constructors

NameDescription
cancellation_token_registration::cancellation_token_registration Constructor
cancellation_token_registration::~cancellation_token_registration Destructor

Public Operators

NameDescription
cancellation_token_registration::operator!= Operator
cancellation_token_registration::operator= Operator
cancellation_token_registration::operator== Operator

cancellation_token_registration

Header: pplcancellation_token.h

Namespace: concurrency

~cancellation_token_registration();

cancellation_token_registration();

cancellation_token_registration(const cancellation_token_registration& _Src);

cancellation_token_registration(cancellation_token_registration&& _Src);

Parameters

_Src

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

Parameters

_Rhs

Return Value

cancellation_token_registration& operator= (const cancellation_token_registration& _Src);

cancellation_token_registration& operator= (cancellation_token_registration&& _Src);

Parameters

_Src

Return Value

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

Parameters

_Rhs

Return Value

concurrency Namespace

Show:
© 2017 Microsoft