将异常传播给所有与此事件关联的任务。
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
**命名空间:**并发