_com_error::Description

Microsoft 专用

调用 IErrorInfo::GetDescription 函数。

语法

_bstr_t Description() const;

返回值

返回 _com_error 对象中记录的 IErrorInfo 对象的 IErrorInfo::GetDescription 结果。 生成的 BSTR 封装在 _bstr_t 对象中。 如果未记录 IErrorInfo,它将返回空 _bstr_t

备注

调用 IErrorInfo::GetDescription 函数并检索 _com_error 对象中记录的 IErrorInfo。 调用 IErrorInfo::GetDescription 方法时的任何失败都将被忽略。

结束 Microsoft 专用

另请参阅

_com_error