System::Threading::CancellationTokenRegistration::Dispose method

CancellationTokenRegistration::Dispose method

Disposes the registration and removes the callback from the associated CancellationTokenSource. After calling this method, the registered callback will no longer be invoked when the associated CancellationTokenSource is canceled.

void System::Threading::CancellationTokenRegistration::Dispose()

Remarks

It is safe to call this method multiple times - subsequent calls will have no effect.

See Also