Skip to content

Latest commit

 

History

History
80 lines (69 loc) · 1.9 KB

File metadata and controls

80 lines (69 loc) · 1.9 KB
title CRowset::Compare | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
f1_keywords
CRowset<TAccessor>.Compare
CRowset<TAccessor>::Compare
ATL.CRowset<TAccessor>.Compare
ATL::CRowset<TAccessor>::Compare
CRowset.Compare
ATL::CRowset::Compare
ATL.CRowset.Compare
CRowset::Compare
dev_langs
C++
helpviewer_keywords
Compare method
ms.assetid a8117b40-7abd-4867-b0ba-eb9e9808204e
caps.latest.revision 9
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

CRowset::Compare

Compares two bookmarks using IRowsetLocate::Compare.

Syntax

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

Parameters

Bookmark1
[in] The first bookmark to compare.

Bookmark2
[in] The second bookmark to compare.

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

Return Value

A standard HRESULT.

Remarks

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.

Requirements

Header: atldbcli.h

See Also

CRowset Class