CancellationTokenSource Methods

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

The CancellationTokenSource type exposes the following members.

Methods

  Name Description
Public method Cancel() Communicates a request for cancellation.
Public method Cancel(Boolean) Communicates a request for cancellation.
Public methodStatic member CreateLinkedTokenSource(array<CancellationToken[]) Creates a CancellationTokenSource that will be in the canceled state when any of the source tokens are in the canceled state.
Public methodStatic 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