IErrorRecordsImpl Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at IErrorRecordsImpl Class.

Implements the OLE DB IErrorRecords interface, adding records to and retrieving records from a data member (m_rgErrors) of type CAtlArray<RecordClass>.

template <  
   class T,   
   class RecordClass = ATLERRORINFO  
>  
class IErrorRecordsImpl : public IErrorRecords  

Parameters

T
A class derived from IErrorRecordsImpl.

RecordClass
A class that represents an OLE DB error object.

Methods

GetErrorDescriptionStringGets the error description string from an error record.
GetErrorGUIDGets the error GUID from an error record.
GetErrorHelpContextGets the help context ID from an error record.
GetErrorHelpFileGets the full pathname of the help file from an error record.
GetErrorSourceGets the error source code from an error record.

Interface Methods

AddErrorRecordAdds a record to the OLE DB error object.
GetBasicErrorInfoReturns basic information about the error, such as the return code and provider-specific error number.
GetCustomErrorObjectReturns a pointer to an interface on a custom error object.
GetErrorInfoReturns an IErrorInfo interface pointer on the specified record.
GetErrorParametersReturns the error parameters.
GetRecordCountReturns the number of records in the OLE DB record object.

Data Members

m_rgErrorsAn array of error records.

Header: atldb.h

OLE DB Provider Templates
OLE DB Provider Template Architecture

Show: