Muokkaa

Jaa


PackageVersion struct

Represents a version of the Windows App SDK framework package.

Definition

Namespace: Microsoft.Windows.ApplicationModel.DynamicDependency

Assembly: Microsoft.WindowsAppRuntime.Bootstrap.Net.dll

public struct PackageVersion

Constructors

Fields

Methods

PackageVersion constructors

Initializes a new instance of the PackageVersion class.

public PackageVersion(ushort major);
public PackageVersion(ushort major, ushort minor);
public PackageVersion(ushort major, ushort minor, ushort build);
public PackageVersion(ushort major, ushort minor, ushort build, ushort revision);
public PackageVersion(ulong version);

Parameters

major ushort

The major position of a major.minor.build.revision sequence.

minor ushort

The minor position of a major.minor.build.revision sequence. Defaults to 0.

build ushort

The build position of a major.minor.build.revision sequence. Defaults to 0.

revision ushort

The revision position of a major.minor.build.revision sequence. Defaults to 0.

version ulong

A major.minor.build.revision sequence encoded as a (little-endian) UInt64 (so that the first 16 bits contain the revision, and so on).

Build field

Gets or sets the build position of a major.minor.build.revision sequence.

public ushort Build;

Major field

Gets or sets the major position of a major.minor.build.revision sequence.

public ushort Major;

Minor field

Gets or sets the minor position of a major.minor.build.revision sequence.

public ushort Minor;

Revision field

Gets or sets the revision position of a major.minor.build.revision sequence.

public ushort Revision;

ToString method

Retrieves the version as a string.

public override string ToString();

Returns

string

The major.minor.build.revision sequence encoded as a string.

ToVersion method

Retrieves the version as a UInt64.

public ulong ToVersion();

Returns

ulong

The major.minor.build.revision sequence encoded as a (little-endian) UInt64 (so that the first 16 bits contain the revision, and so on).

Applies to

Product Introduced in
Windows App SDK Windows App SDK 1.0

See also