CancellationTokenRegistration Methods

Task Parallel System.Threading

The CancellationTokenRegistration type exposes the following members.

Methods

  NameDescription
Dispose
Disposes of the registration and unregisters the target callback from the associated CancellationToken. If the target callback is currently executing this method will wait until it completes, except in the degenerate cases where a callback method deregisters itself.
EqualsOverloaded.
Finalize (Inherited from Object.)
GetHashCode
Serves as a hash function for a CancellationTokenRegistration..
(Overrides ValueType..::.GetHashCode()()().)
GetType (Inherited from Object.)
MemberwiseClone (Inherited from Object.)
ToString (Inherited from ValueType.)

Operators

  NameDescription
Equality
Determines whether two CancellationTokenRegistration instances are equal.
Inequality
Determines whether two CancellationTokenRegistration instances are not equal.

See Also