System.Threading.CancellationTokenRegistration Structure

Represents a callback delegate that has been registered with a System.Threading.CancellationToken.

See Also: CancellationTokenRegistration Members

Syntax

public struct CancellationTokenRegistration : IDisposable, IEquatable<CancellationTokenRegistration>

Remarks

The callback is called when the token is canceled. To unregister a callback, dispose the corresponding Registration instance. For more information and code examples see Cancellation.

Requirements

Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 4.0.0.0