다음을 통해 공유


IAppxManifestQualifiedResourcesEnumerator::GetCurrent method

Gets the resource at the current position of the enumerator.

Syntax

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

Parameters

  • packageInfo [out, retval]
    Type: IAppxManifestQualifiedResource**

    The current <Resource> 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, IAppxManifestQualifiedResourcesEnumerator::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_IAppxManifestQualifiedResourcesEnumerator is defined as 8ef6adfe-3762-4a8f-9373-2fc5d444c8d2

See also

IAppxManifestQualifiedResourcesEnumerator