Cancel()

CancellationTokenSource::Cancel() method

Communicates a request for cancellation.

void System::Threading::CancellationTokenSource::Cancel()

Remarks

All registered callbacks will be invoked.

Subsequent calls to get_IsCancellationRequested() will return true.

Callbacks are executed synchronously during this call.

See Also