.NET Framework Class Library |
CancellationTokenRegistration..::.Dispose Method |
CancellationTokenRegistration Structure See Also Send Feedback |
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() |