Partager via


IRecipientTable::Sort (Compact 7)

3/12/2014

The Sort method sorts the recipient table according to a set of properties that you specify.

Syntax

HRESULT Sort(
  DWORD cSorts,
  BSTR * rgbstrProperty,
  VARIANT_BOOL * rgfDescending
);

Parameters

  • cSorts
    [in] A count of the number of properties that you want to use for the sort criteria.
  • rgbstrProperty
    [in] A reference to an array of BSTRs that contain the property names to sort on. For information on the BSTR type, see BSTR.
  • rgfDescending
    [in] A reference to an array of Boolean values that indicate the direction of each of the sort fields. For information about the VARIANT_BOOL type, see the union member of the PROPVARIANT structure.

Return Value

The Sort method returns the following standard HRESULT values.

  • S_OK
    The operation completed successfully.
  • E_FAIL
    The operation failed due to an unspecified error.
  • E_INVALIDARG
    The operation failed because one (or more) of the arguments is not valid.
  • E_OUTOFMEMORY
    The operation failed because it needs more memory resources.
  • E_UNEXPECTED
    The operation failed due to an unexpected failure.

Remarks

New for Windows Embedded Compact 7.

Requirements

Header

pimstore.h

Library

Pimstore.lib

See Also

Reference

IRecipientTable