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