CADORecordset.DataSourceproperty
Indicates an object that contains data to be represented as a `Recordset` object.
Syntax
PROPERTY DataSource () AS IUnknown PTR
PROPERTY DataSource (BYVAL punkDataSource AS IUnknown PTR)
Parameters
| Name | Description | |
|---|---|---|
punkDataSource | An object reference to the data source. |
Return value
An object reference to the data source.
Description
Indicates an object that contains data to be represented as a Recordset object.
Remarks
This property is used to create data-bound controls with the Data Environment. The Data Environment maintains collections of data (data sources) containing named objects (data members) that will be represented as a Recordset object.
The DataMember and DataSource properties must be used in conjunction.
The object referenced must implement the IDataSource interface and must contain an IRowset interface.
Reference
- Include file
CADORecordset.inc - Defined in AfxNova/CAdoRecordset.inc:699
- Documented in Databases/ADO Classes/CAdoRecordset Class.md
- Topic: CADORecordset Class