IAppxBundleManifestPackageInfoEnumerator::GetCurrent method (appxpackaging.h)

Gets the <Package> element at the current position of the enumerator.

Syntax

HRESULT GetCurrent(
  [out, retval] IAppxBundleManifestPackageInfo **packageInfo
);

Parameters

[out, retval] packageInfo

Type: IAppxBundleManifestPackageInfo**

The current <Package> element.

Return value

Type: HRESULT

If the method succeeds, it returns S_OK. Otherwise, it returns an error code that includes, but is not limited to, those in the following table.

Return code Description
E_BOUNDS
The enumerator has passed the last item in the collection.

Remarks

The enumerator’s position points to the first element by default. So, with a newly constructed enumerator that contains at least one element, IAppxBundleManifestPackageInfoEnumerator::GetHasCurrent returns TRUE and GetCurrent returns the first element.

Requirements

Requirement Value
Minimum supported client Windows 8.1 [desktop apps only]
Minimum supported server Windows Server 2012 R2 [desktop apps only]
Target Platform Windows
Header appxpackaging.h

See also

IAppxBundleManifestPackageInfoEnumerator