This documentation is archived and is not being maintained.
CancellationToken Methods
Visual Studio 2010
The CancellationToken type exposes the following members.
| Name | Description | |
|---|---|---|
|
Equals(CancellationToken) | Determines whether the current CancellationToken instance is equal to the specified token. |
|
Equals(Object) | Determines whether the current CancellationToken instance is equal to the specified Object. (Overrides ValueType::Equals(Object).) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetHashCode | Serves as a hash function for a CancellationToken. (Overrides ValueType::GetHashCode().) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
Register(Action) | Registers a delegate that will be called when this CancellationToken is canceled. |
|
Register(Action, Boolean) | Registers a delegate that will be called when this CancellationToken is canceled. |
|
Register(Action<Object>, Object) | Registers a delegate that will be called when this CancellationToken is canceled. |
|
Register(Action<Object>, Object, Boolean) | Registers a delegate that will be called when this CancellationToken is canceled. |
|
ThrowIfCancellationRequested | Throws a OperationCanceledException if this token has had cancellation requested. |
|
ToString | Returns the fully qualified type name of this instance. (Inherited from ValueType.) |
Show: