Share via


IMLSortOrder::Compare (Compact 7)

3/12/2014

This method compares IMLSortOrder with another IMLSortOrder for equivalence.

Syntax

HRESULT Compare(
    IMLSortOrder *pSortOrderOther,
  BOOL *pfResult
);

Parameters

  • pSortOrderOther
    [in] Pointer to another IMLSortOrder to compare with.
  • pfResult
    [out] Pointer to the returned BOOL result of the comparison. TRUE indicates equivalence.

Return Values

Returns the HRESULT values shown in the following table.

Value Description

S_OK

The method was successful.

E_INVALIDARG

One or more parameters are invalid.

E_POINTER

The pSortOrderOther parameter is invalid.

E_FAIL

The method was not successful.

E_MEMORY

An out-of-memory error occurred.

Remarks

The sort orders are set in the IMLSortOrderSet interface.

Requirements

Header

mlibdll.h,
mlibdll.idl

Library

mlibdll.lib

See Also

Reference

IMLSortOrder