IAppxManifestApplicationsEnumerator::GetCurrent method
Gets the application at the current position of the enumerator.
Syntax
HRESULT GetCurrent( [out, retval] IAppxManifestApplication **application );
Parameters
- application [out, retval]
-
Type: IAppxManifestApplication**
The current application.
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 |
|---|---|
|
The enumerator has passed the last item in the collection. |
Remarks
The enumerator returned can be empty. In this case, a call to GetHasCurrent returns false. If the enumerator is not empty, it points to the first element, and this method returns the first item. Subsequently, the user should use MoveNext to move through the items, and call GetHasCurrent before using GetCurrent to access the item.
Examples
For an example, see Quickstart: Read app package manifest info.
Requirements
|
Minimum supported client |
Windows 8 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2012 [desktop apps only] |
|
Header |
|
|
IDL |
|
|
IID |
IID_IAppxManifestApplicationsEnumerator is defined as 9eb8a55a-f04b-4d0d-808d-686185d4847a |
See also