Dispose Method

Task Parallel System.Threading

Disposes of the registration and unregisters the target callback from the associated CancellationToken. If the target callback is currently executing this method will wait until it completes, except in the degenerate cases where a callback method deregisters itself.

Namespace:  System.Threading
Assembly:  System.Threading (in System.Threading.dll)

Syntax

Visual Basic (Declaration)
Public Sub Dispose
C#
public void Dispose()

Implements

IDisposable..::.Dispose()()()

See Also