Click or drag to resize
UpdateControllerCurrentUpdate Property
Gets or sets information about the currently available update, or if no update information has been retrieved. If setting this value, the UpdateInformation must be in the list of updates retured by AllUpdates and EnableAutoChaining must be .

Namespace: Kjs.AppLife.Update.Controller
Assembly: Kjs.AppLife.Update.Controller (in Kjs.AppLife.Update.Controller.dll) Version: 5.1.0.9 (5.1.0.9)
Syntax
public UpdateInformation CurrentUpdate { get; set; }

Property Value

Type: UpdateInformation
Information about the currently available update, or if no update is available or the controller has not yet checked for an available update.
Exceptions
ExceptionCondition
ArgumentExceptionThe property is set and the value is not in the AllUpdates collection.
ValidationExceptionThe PublicKeyToken property is invalid.
InvalidOperationException

The property is set and IsBusy is .

-or-

The property is set and EnableAutoChaining is .

Remarks

This property is automatically set when calling any method that checks for an available update: CheckForUpdate, CheckForUpdateAsync, ShowCheckForUpdateDialog, or UpdateInteractive if the user cancels the update process after an update is found. However, if no update is available, it will remain .

Changing the Version property will reset CurrentUpdate to .

When EnableAutoChaining is , CurrentUpdate will be automatically set to the final update in the update chain after an update check is complete and cannot be changed. In order to choose which update(s) to apply in a chain, you must handle the [E:UpdateFound] event and set the SelectedUpdate property.

See Also