ISortCollection::GetEnumerator method

Retrieves an enumerator that you use to enumerate the items in the collection.

Syntax

HRESULT GetEnumerator(
  [out] IEnumVARIANT **pEnum
);

Parameters

  • pEnum [out]
    An IEnumVARIANT interface that you use to enumerate the items in the collection. The items of the enumeration are VARIANTs of type VT_DISPATCH. Query the pdispVal member for the ISortProperty interface.

Return value

If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code.

Remarks

Because the sort objects are opaque, do not try to enumerate the objects in the collection.

Requirements

Product

HPC Pack 2008 R2 Client Utilities, HPC Pack 2008 Client Utilities

Type library

Microsoft.Hpc.Scheduler.tlb

See also

ISortCollection

ISortCollection.Item