MDAC 2.5 SDK - OLE DB Programmer's Reference
OLE DB Interfaces


 

IRowsetCurrentIndex

IRowsetCurrentIndex is the interface for determining and selecting a specific index for a rowset. This is limited to rowsets that expose IRowsetIndex. IRowsetCurrentIndex provides a mechanism for providers to reorder their rows without reopening the rowset. This interface can be effective for both integrated and nonintegrated indexes. For a complete description of indexes, see Chapter 10, "Index Rowsets" and Chapter 11, "Integrated Indexes."

When to Implement

IRowsetCurrentIndex is optional for providers that support integrated or nonintegrated indexes through IRowsetIndex. Providers that support IRowsetIndex and can change the current index dynamically should implement this interface.

When to Call

Method Description
GetIndex Gets the current index on the rowset.
SetIndex Sets the current index on the rowset.