将此对象与另一个(任意类型)进行比较。 如果无法执行比较,应返回E_NOT_SET。
遗产
IComparableConcept 继承自 IUnknown。
方法
IComparableConcept 接口具有这些方法。
IComparableConcept::AddRef IComparableConcept::AddRef 方法递增对象上接口的引用计数。 |
IComparableConcept::CompareObjects IComparableConcept::CompareObjects 将此对象与任意类型的另一个对象进行比较。 如果无法执行比较,则返回E_NOT_SET。 |
IComparableConcept::QueryInterface IComparableConcept::QueryInterface 方法检索指向对象上支持的接口的指针。 |
IComparableConcept::Release IComparableConcept::Release 方法会减少对象上接口的引用计数。 |
言论
在比较结果中传递的返回值具有以下含义:
< 0 : contextObject < otherObject
0 : contextObject == otherObject
> 0 : contextObject > otherObject
要求
要求 | 价值 |
---|---|
标头 | dbgmodel.h |