Saltar al contenido principal

UpdateInfo class

Namespace: Velopack

Holds information about the current version and pending updates, such as how many there are, and access to release notes.

public class UpdateInfo

Constructors

ConstructorSummary
UpdateInfoCreate a new instance of UpdateInfo

UpdateInfo(targetRelease, isDowngrade, deltaBaseRelease, deltasToTarget)

public UpdateInfo(VelopackAsset targetRelease, bool isDowngrade, VelopackAsset? deltaBaseRelease = null, VelopackAsset[]? deltasToTarget = null)

Create a new instance of UpdateInfo

Parameters

NameTypeDescription
targetReleaseVelopackAsset
isDowngradebool
deltaBaseReleaseVelopackAsset
deltasToTargetVelopackAsset[]

Properties

PropertySummary
TargetFullReleaseThe available version that we are updating to.
IsDowngradeTrue if the update is a version downgrade or lateral move (such as when switching channels to the same version number).
BaseReleaseThe base release that we are to apply delta updates from. If null, we can try doing a delta update from
DeltasToTargetThe list of delta versions between the current version and TargetFullRelease.

TargetFullRelease

public VelopackAsset TargetFullRelease { get; }

The available version that we are updating to.

IsDowngrade

public bool IsDowngrade { get; }

True if the update is a version downgrade or lateral move (such as when switching channels to the same version number). In this case, only full updates are allowed, and any local packages on disk newer than the downloaded version will be deleted.

BaseRelease

public VelopackAsset? BaseRelease { get; }

The base release that we are to apply delta updates from. If null, we can try doing a delta update from the currently installed version.

DeltasToTarget

public VelopackAsset[] DeltasToTarget { get; }

The list of delta versions between the current version and TargetFullRelease. These will be applied in order.

Operators

OperatorSummary
implicit operator VelopackAssetImplicitly convert an UpdateInfo to a VelopackAsset.

implicit operator VelopackAsset(updateInfo)

public static implicit operator VelopackAsset(UpdateInfo updateInfo)

Implicitly convert an UpdateInfo to a VelopackAsset.

Parameters

NameTypeDescription
updateInfoUpdateInfo

Returns VelopackAsset


Generated from Velopack 1.1.1