Skip to content

Latest commit

 

History

History
69 lines (52 loc) · 2.07 KB

adorecordconstruction-interface.md

File metadata and controls

69 lines (52 loc) · 2.07 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords apitype
ADORecordConstruction Interface
ADORecordConstruction Interface
rothja
jroth
01/19/2017
sql
ado
reference
ADORecordConstruction
ADORecordConstruction interface [ADO]
COM

ADORecordConstruction Interface

The ADORecordConstructioninterface is used to construct an ADO Record object from an OLE DB Row object in a C/C++ application.

This interface supports the following properties:

Properties

Property Description
ParentRow Write-only.
Sets the container of an OLE DB Row object on this ADO Record object.
Row Read/Write.
Gets/sets an OLE DB Row object from/on this ADO Record object.

Methods

None.

Events

None.

Remarks

Given an OLE DB Row object (pRow), the construction of an ADO Record object (adoR), amounts to the following three basic operations:

  1. Create an ADO Record object:

    _RecordPtr adoR;  
    adoRs.CreateInstance(__uuidof(_Record));  
    
  2. Query the IADORecordConstruction interface on the Record object:

    adoRecordConstructionPtr adoRConstruct=NULL;  
    adoR->QueryInterface(__uuidof(ADORecordConstruction),  
                        (void**)&adoRConstruct);  
    
  3. Call the IADORecordConstruction::put_Row property method to set the OLE DB Row object on the ADO Record object:

    IUnknown *pUnk=NULL;  
    pRow->QueryInterface(IID_IUnknown, (void**)&pUnk);  
    adoRConstruct->put_Row(pUnk);  
    

The resultant adoR object now represents the ADO Record object constructed from the OLE DB Row object.

An ADO Record object can also be constructed from the container of an OLE DB Row object.

Requirements

Version: ADO 2.0 and later

Library: msado15.dll

UUID: 00000567-0000-0010-8000-00AA006D2EA4