共用方式為


CDBErrorInfo::GetBasicErrorInfo

Calls IErrorRecords::GetBasicErrorInfo to return basic information about the error, such as the return code and provider-specific error number.

HRESULT GetBasicErrorInfo( 
   ULONG ulRecordNum, 
   ERRORINFO* pErrorInfo  
) const throw( );

Parameters

See IErrorRecords::GetBasicErrorInfo in the OLE DB Programmer's Reference.

Return Value

A standard HRESULT.

Requirements

Header: atldbcli.h

See Also

Reference

CDBErrorInfo Class