IDataSource is implemented by the OSP Data Object.
When the data consumer asks for data, it specifies the data access interface it wants via an IID. With the OLE DB Simple Provider Toolkit, you always use IID_OLEDBSimpleProvider (for other data access interfaces you can use with IDataSource, see the Visual Basic documentation).
Data members are sets of data and are identified by strings (BSTRs). The data member argument used with the IDataSource methods is interpreted as a case-insensitive string; that is, "MyDataMember" = "MYDATAMEMBER" = "mydatamember".
Following are the IDataSource methods used with OSP.
Method | Description |
getDataMember | Returns a data access object (such as a row position) for a given data member. |
getDataMemberCount | Returns the number of well-known data members. |
getDataMemberName | Returns the name of a well-known data member. |
addDataSourceListener | Adds a listener to the notification list. |
removeDataSourceListener | Removes a listener from the notification list. |