_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 类