System::Threading::CancellationToken::ThrowIfCancellationRequested method

CancellationToken::ThrowIfCancellationRequested method

Gooit een OperationCanceledException als annulering is aangevraagd.

void System::Threading::CancellationToken::ThrowIfCancellationRequested() const

Opmerkingen

Deze methode biedt een handige manier om te controleren op annulering op specifieke punten in uw code waar het veilig is om een uitzondering te werpen.

Zie ook