_com_error::Source

Microsoft 专用

调用 IErrorInfo::GetSource 函数。

语法

_bstr_t Source() const;

返回值

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

备注

调用 IErrorInfo::GetSource 方法时的任何失败都将被忽略。

结束 Microsoft 专用

另请参阅

_com_error