System.Threading.CancellationToken.WaitHandle Property

Gets a System.Threading.WaitHandle that is signaled when the token is canceled.

Syntax

public WaitHandle WaitHandle { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Accessing this property causes a System.Threading.WaitHandle to be instantiated. It is preferable to only use this property when necessary, and to then dispose the associated System.Threading.CancellationTokenSource instance at the earliest opportunity (disposing the source will dispose of this allocated handle). The handle should not be closed or disposed directly.

Requirements

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