UpdateControllerCurrentUpdate Property |
Namespace: Kjs.AppLife.Update.Controller
Exception | Condition |
---|---|
ArgumentException | The property is set and the value is not in the AllUpdates collection. |
ValidationException | The PublicKeyToken property is invalid. |
InvalidOperationException | The property is set and IsBusy is . -or- The property is set and EnableAutoChaining is . |
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.