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
| Constructor | Summary |
|---|---|
UpdateInfo | Create 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
| Name | Type | Description |
|---|---|---|
targetRelease | VelopackAsset | |
isDowngrade | bool | |
deltaBaseRelease | VelopackAsset | |
deltasToTarget | VelopackAsset[] |
Properties
| Property | Summary |
|---|---|
TargetFullRelease | The available version that we are updating to. |
IsDowngrade | True if the update is a version downgrade or lateral move (such as when switching channels to the same version number). |
BaseRelease | The base release that we are to apply delta updates from. If null, we can try doing a delta update from |
DeltasToTarget | The 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
| Operator | Summary |
|---|---|
implicit operator VelopackAsset | Implicitly 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
| Name | Type | Description |
|---|---|---|
updateInfo | UpdateInfo |
Returns VelopackAsset
Generated from Velopack 1.1.1