UpdateControllerGetUpdateHistory Method |
Gets a collection of
LoggedUpdate objects representing past updates
applied for the specified application ID. The information is retrieved by reading
update log files.
Namespace: Kjs.AppLife.Update.ControllerAssembly: Kjs.AppLife.Update.Controller (in Kjs.AppLife.Update.Controller.dll) Version: 5.1.0.9 (5.1.0.9)
Syntaxpublic static IList<LoggedUpdate> GetUpdateHistory(
Guid applicationId
)
Public Shared Function GetUpdateHistory (
applicationId As Guid
) As IList(Of LoggedUpdate)
public:
static IList<LoggedUpdate^>^ GetUpdateHistory(
Guid applicationId
)
static member GetUpdateHistory :
applicationId : Guid -> IList<LoggedUpdate>
Parameters
- applicationId
- Type: SystemGuid
ID of the application for which to retrieve an update history.
Return Value
Type:
IListLoggedUpdateA read-only collection of
LoggedUpdate objects containing
information about updates applied for the specified application ID.
Remarks
This method will check the default log folder for the current user, and it will
also check the custom log folder for the specified application ID, if there is a
custom log folder configured.
Example:
using System;
using System.Collections.Generic;
using Kjs.AppLife.Update.Controller;
class Program {
static void Main() {
IList<LoggedUpdate> updateList = UpdateController.GetUpdateHistory(new Guid("c199032dcb0d4be4b6395d915e028903"));
foreach(LoggedUpdate update in updateList) {
Console.WriteLine("Update to version {0} at {1}. Result: {2}.", update.UpdateVersion, update.EndTime, update.Result);
}
Console.ReadLine();
}
}
Imports Kjs.AppLife.Update.Controller
Module Module1
Sub Main()
Dim updateList As IList(Of LoggedUpdate)
updateList = UpdateController.GetUpdateHistory(New Guid("c199032dcb0d4be4b6395d915e028903"))
For Each update As LoggedUpdate In updateList
Console.WriteLine("Update to version {0} at {1}. Result: {2}.", update.UpdateVersion, update.EndTime, update.Result)
Next
Console.ReadLine()
End Sub
End Module
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also