共用方式為


CDBErrorInfo::GetCustomErrorObject

Calls IErrorRecords::GetCustomErrorObject to return a pointer to an interface on a custom error object.

HRESULT GetCustomErrorObject( 
   ULONG ulRecordNum, 
   REFIID riid, 
   IUnknown** ppObject  
) const throw( );

Parameters

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

Return Value

A standard HRESULT.

Requirements

Header: atldbcli.h

See Also

Reference

CDBErrorInfo Class