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.

CancellationTokenSource Methods

The CancellationTokenSource type exposes the following members.

  Name Description
Public method Cancel() Communicates a request for cancellation.
Public method Cancel(Boolean) Communicates a request for cancellation.
Public method Static member CreateLinkedTokenSource(CancellationToken[]) Creates a CancellationTokenSource that will be in the canceled state when any of the source tokens are in the canceled state.
Public method Static member CreateLinkedTokenSource(CancellationToken, CancellationToken) Creates a CancellationTokenSource that will be in the canceled state when any of the source tokens are in the canceled state.
Public method Dispose Releases all resources used by the current instance of the CancellationTokenSource class.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft