다음을 통해 공유


task_completion_event::set_exception 메서드

이 이벤트와 관련된 모든 작업에 예외를 전파합니다.

template<
   typename _E
>
__declspec(
   noinline
) bool set_exception(_E _Except) const;

__declspec(
   noinline
) bool set_exception(std::exception_ptr _ExceptionPtr) const ;

매개 변수

  • _E

  • _Except

  • _ExceptionPtr

요구 사항

헤더: ppltasks.h

네임스페이스: 동시성

참고 항목

참조

task_completion_event 클래스