accelerator_view_removed 类

基础 DirectX 调用因 Windows 超时检测和恢复机制而失败时引发的异常。

语法

class accelerator_view_removed : public runtime_exception;

成员

公共构造函数

名称 描述
accelerator_view_removed 构造函数 初始化 accelerator_view_removed 类的新实例。

公共方法

名称 描述
get_view_removed_reason 返回一个 HRESULT 错误代码,指示移除 accelerator_view 对象的原因。

继承层次结构

exception

runtime_exception

out_of_memory

要求

标头:amprt.h

命名空间: 并发

accelerator_view_removed

初始化 accelerator_view_removed 类的新实例。

语法

explicit accelerator_view_removed(
    const char * message,
    HRESULT view_removed_reason ) throw();

explicit accelerator_view_removed(
    HRESULT view_removed_reason ) throw();

参数

message
对错误的说明。

view_removed_reason
指示 accelerator_view 对象移除原因的 HRESULT 错误代码。

返回值

accelerator_view_removed 类的新实例。

get_view_removed_reason

返回一个 HRESULT 错误代码,指示移除 accelerator_view 对象的原因。

语法

HRESULT get_view_removed_reason() const throw();

另请参阅

并发命名空间 (C++ AMP)