task_completion_event::set_exception 方法 (C++ REST SDK)
将异常传播给所有与此事件关联的任务。
template<
typename _E
>
__declspec(
noinline
) bool set_exception(_E _Except) const;
__declspec(
noinline
) bool set_exception(std::exception_ptr _ExceptionPtr) const ;
参数
_E
_Except
_ExceptionPtr
要求
**标头:**pplxtasks.h
**命名空间:**pplx