IAppxContentGroupsEnumerator::MoveNext method (appxpackaging.h)

Advances the position of the enumerator to the next content group.

Syntax

HRESULT MoveNext(
  [out, retval] BOOL *hasNext
);

Parameters

[out, retval] hasNext

Type: BOOL*

TRUE if the enumerator successfully advances

FALSE if the enumerator has passed the end of the collection.

Return value

Type: HRESULT

If the method succeeds, it returns S_OK. Otherwise, it returns an error code.

Note  When the enumerator passes the end of the collection for the first time, hasNext = FALSE, but the method succeeds and returns S_OK. However, the method returns E_BOUNDS if you subsequently call another MoveNext after you have already passed the end of the collection, and you have previously received hasNext = FALSE.
 

Requirements

Requirement Value
Minimum supported client Windows 10 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Target Platform Windows
Header appxpackaging.h

See also

IAppxContentGroupsEnumerator