CancellationToken Methods

Task Parallel System.Threading

The CancellationToken type exposes the following members.

Methods

  NameDescription
EqualsOverloaded.
Finalize (Inherited from Object.)
GetHashCode
Serves as a hash function for a CancellationToken.
(Overrides ValueType..::.GetHashCode()()().)
GetType (Inherited from Object.)
MemberwiseClone (Inherited from Object.)
RegisterOverloaded.
ThrowIfCancellationRequested
Throws a OperationCanceledException if this token has had cancellation requested.
ToString (Inherited from ValueType.)

Operators

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

See Also