_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 专用
另请参阅
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈