Share via


_com_error::Source

Microsoft Specific

_bstr_t Source( ) const throw( );

Return Value

Returns the result of IErrorInfo::GetSource for the IErrorInfo object recorded within the _com_error object. The resulting BSTR is encapsulated in a _bstr_t object. If no IErrorInfo is recorded, it returns an empty _bstr_t.

Remarks

Calls the IErrorInfo::GetSource interface method. Any failure while calling the IErrorInfo::GetSource method is ignored.

_com_error Overview

END Microsoft Specific