共用方式為


IErrorRecordsImpl::AddErrorRecord

Adds a record to the OLE DB error object.

STDMETHOD( AddErrorRecord )( 
   ERRORINFO *pErrorInfo, 
   DWORD dwLookupID, 
   DISPPARAMS *pdispparams, 
   IUnknown *punkCustomError, 
   DWORD dwDynamicErrorID  
);

Parameters

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

Requirements

Header: atldb.h

See Also

Reference

IErrorRecordsImpl Class