Dela via


AppInstallerInfo.Version Property

Definition

Gets a PackageVersion object expressing the version of the App Installer file represented by the AppInstallerInfo object.

public:
 property PackageVersion Version { PackageVersion get(); };
PackageVersion Version();
public PackageVersion Version { get; }
var packageVersion = appInstallerInfo.version;
Public ReadOnly Property Version As PackageVersion

Property Value

The version of the App Installer file.

Windows requirements

Device family
Windows 11 (introduced in 10.0.22000.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v14.0)

Remarks

Note that this is the version of the App Installer file itself, not the version of the schema the App Installer uses, and will typically be assigned to match the version of the main package the installer file is associated with.

This property is equivalent to the Version attribute of the AppInstaller element of the App Installer file schema.

Applies to