OLE DB Programmer's Reference |
Sets the next fetch position for the rowset to be immediately before the specified bookmark.
HRESULT PositionOnBookmark ( HCHAPTER hChapter, DBBKMARK cbBookmark, const BYTE *pBookmark);
Parameters
Return Code
pBookmark was a null pointer.
Note Consumers should attempt to use only bookmarks that they have received from the provider. The provider is guaranteed to handle only bookmarks it gives out in a predictable manner. Attempting to use a random value as a bookmark is undefined; the provider might return DB_E_BADBOOKMARK, might return an unexpected row, or might terminate abnormally.
The rowset was single-chaptered, and the specified chapter was not the currently open chapter. The consumer must use the currently open chapter or release the currently open chapter before specifying a new chapter.
Comments
After using this method, the client uses IRowset::GetNextRows to fetch rows from this new position. This interface is analogous to IRowsetIndex::Seek on integrated indexes in that it merely positions the next fetch position.
If this method fails, the next fetch position is unchanged.
IRowsetLocate::GetRowsAt
1998-2001 Microsoft Corporation. All rights reserved.