IAppxManifestPackageId::GetVersion method (appxpackaging.h)

Gets the version of the package as defined in the manifest.

Syntax

HRESULT GetVersion(
  [out, retval] UINT64 *packageVersion
);

Parameters

[out, retval] packageVersion

Type: UINT64*

The version of the package.

Return value

Type: HRESULT

If the method succeeds, it returns S_OK.

Remarks

The version is specified using the Version attribute of the Identity element in the package manifest. The specification in the manifest is in quad notation:

major.minor.build.revision

This method converts this notation to a UINT64 value as follows:

  • The high-order word contains the major version
  • The next word contains the minor version
  • The next word contains the build number
  • The low-order word contains the revision

Examples

For an example, see Quickstart: Read app package manifest info.

Requirements

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

See also

IAppxManifestPackageId