System::Threading::CancellationToken::ThrowIfCancellationRequested 메서드

CancellationToken::ThrowIfCancellationRequested method

취소가 요청된 경우 OperationCanceledException을 발생시킵니다.

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

비고

이 메서드는 예외를 발생시켜도 안전한 코드의 특정 지점에서 취소 여부를 편리하게 확인할 수 있는 방법을 제공합니다.

또 보기