IAppxBundleManifestPackageInfoEnumerator::GetCurrent method

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

Syntax


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

Parameters

packageInfo [out, retval]

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 codeDescription
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

Minimum supported client

Windows 8.1 [desktop apps only]

Minimum supported server

Windows Server 2012 R2 [desktop apps only]

Header

AppxPackaging.h

IDL

AppxPackaging.idl

IID

IID_IAppxBundleManifestPackageInfoEnumerator is defined as F9B856EE-49A6-4E19-B2B0-6A2406D63A32

See also

IAppxBundleManifestPackageInfoEnumerator

 

 

Show: