IAppxManifestReader interface
Represents an object model of the package manifest that provides methods to access manifest elements and attributes.
Members
The IAppxManifestReader interface inherits from the IUnknown interface. IAppxManifestReader also has these types of members:
Methods
The IAppxManifestReader interface has these methods.
| Method | Description |
|---|---|
| GetApplications |
Gets an enumerator that iterates through the applications defined in the manifest. |
| GetCapabilities |
Gets the list of capabilities requested by the package. |
| GetDeviceCapabilities |
Gets an enumerator that iterates through the device capabilities defined in the manifest. |
| GetPackageDependencies |
Gets an enumerator that iterates through dependencies defined in the manifest. |
| GetPackageId |
Gets the package identifier defined in the manifest. |
| GetPrerequisite |
Gets the specified prerequisite as defined in the package manifest. |
| GetProperties |
Gets the properties of the package as defined in the manifest. |
| GetResources |
Gets an enumerator that iterates through the resources defined in the manifest. |
| GetStream |
Gets the raw XML parsed and read by the manifest reader. |
Remarks
Do not implement this object. Use the provided implementation instead.
This IAppxManifestReader object parses and validates the app package manifest and exposes elements and attributes in the manifest in a type-safe manner. This object can also be used to get an underlying IStream for the raw XML if needed.
This object can be retrieved using the CreateManifestReader method of the IAppxFactory interface or the GetManifest method of the IAppxPackageReader interface. In either case, the manifest is validated before returning the IAppxManifestReader object. If the XML is not syntactically valid, then the above mentioned methods fail, and the IAppxManifestReader object is not returned.
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_IAppxManifestReader is defined as 4e1bd148-55a0-4480-a3d1-15544710637c |
See also
- APPX_CAPABILITIES
- IAppxManifestApplicationsEnumerator
- IAppxManifestDeviceCapabilitiesEnumerator
- IAppxManifestPackageDependenciesEnumerator
- IAppxManifestPackageId
- IAppxManifestProperties
- IAppxManifestResourcesEnumerator