Export (0) Print
Expand All

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, and specifies whether remaining callbacks and cancelable operations should be processed.
Public method CancelAfter(Int32) Schedules a cancel operation on this CancellationTokenSource after the specified number of milliseconds.
Public method CancelAfter(TimeSpan) Schedules a cancel operation on this CancellationTokenSource after the specified time span.
Public method Static member CreateLinkedTokenSource(CancellationToken[]) Creates a CancellationTokenSource that will be in the canceled state when any of the source tokens in the specified array 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.
Protected method Dispose(Boolean) Releases the unmanaged resources used by the CancellationTokenSource class and optionally releases the managed resources.
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 it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as the default hash function. (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
Show:
© 2014 Microsoft