CancellationToken Methods

The CancellationToken type exposes the following members.

  Name Description
Public method Supported by Portable Class Library Equals(CancellationToken) Determines whether the current CancellationToken instance is equal to the specified token.
Public method Supported by Portable Class Library Equals(Object) Determines whether the current CancellationToken instance is equal to the specified Object. (Overrides ValueType.Equals(Object).)
Public method Supported by Portable Class Library GetHashCode Serves as a hash function for a CancellationToken. (Overrides ValueType.GetHashCode().)
Public method Supported by Portable Class Library GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Supported by Portable Class Library Register(Action) Registers a delegate that will be called when this CancellationToken is canceled.
Public method Supported by Portable Class Library Register(Action, Boolean) Registers a delegate that will be called when this CancellationToken is canceled.
Public method Supported by Portable Class Library Register(Action<Object>, Object) Registers a delegate that will be called when this CancellationToken is canceled.
Public method Supported by Portable Class Library Register(Action<Object>, Object, Boolean) Registers a delegate that will be called when this CancellationToken is canceled.
Public method Supported by Portable Class Library ThrowIfCancellationRequested Throws a OperationCanceledException if this token has had cancellation requested.
Public method Supported by Portable Class Library ToString Returns the fully qualified type name of this instance. (Inherited from ValueType.)
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft