IEquatableConcept::AreObjectsEqual method (dbgmodel.h)

Compares this object to another (of arbitrary type) for equality. If the comparison cannot be performed, E_NOT_SET should be returned. IEquatableConcept is typically implemented by the object creators. To compare objects consider using IModelObject::IsEqualTo or IModelObject::Compare.

Syntax

HRESULT AreObjectsEqual(
  IModelObject *contextObject,
  IModelObject *otherObject,
  bool         *isEqual
);

Parameters

contextObject

The object being compared.

otherObject

The other object (of arbitrary type) that contextObject is being compared to.

isEqual

Returned Boolean indicating if the two objects are equal.

Return value

This method returns HRESULT which indicates success or failure.

Remarks

Generally speaking, you will implement (but not necessarily consume) IEquatableConcept. It can be easier to call IModelObject::IsEqualTo or IModelObject::Compare and let those methods manage the concept fetch.

Requirements

Requirement Value
Header dbgmodel.h

See also

IEquatableConcept interface