다음을 통해 공유


CRowset::Compare

Compares two bookmarks using IRowsetLocate::Compare.

HRESULT Compare( 
   const CBookmarkBase& bookmark1, 
   const CBookmarkBase& bookmark2, 
   DBCOMPARE* pComparison  
) const throw( );

매개 변수

  • Bookmark1
    [in] The first bookmark to compare.

  • Bookmark2
    [in] The second bookmark to compare.

  • pComparison
    [out] A pointer to the result of the comparison.

반환 값

A standard HRESULT.

설명

This method requires the optional interface IRowsetLocate, which might not be supported on all providers; if this is the case, the method returns E_NOINTERFACE. You must also set DBPROP_IRowsetLocate to VARIANT_TRUE before calling Open on the table or command containing the rowset.

For information about using bookmarks in consumers, see Using Bookmarks.

요구 사항

헤더: atldbcli.h

참고 항목

참조

CRowset 클래스