Compartilhar via


_ItemComparer.AreObjectsEqual(const Type&,const Type&) (Compact 2013)

3/28/2014

This method determines whether the specified objects are equal to each other.

Syntax

template<typename Type>
bool AreObjectsEqual(
const Type & Object,
const Type & ObjectToCompare)

Parameters

  • Object
    [in] An object of type Type in the collection.
  • ObjectToCompare
    [in] Another object of type Type to compare with the object in the collection.

Return Value

Returns true if the specified objects are equal; otherwise, returns false.

Remarks

This method implementation uses the == operator to determine whether the objects are equal. In a derived class, you can provide a customized implementation to determine whether two objects are equal.

Requirements

Header

XRCollection.h

See Also

Reference

_ItemComparer