Click or drag to resize
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.Controller
Assembly: Kjs.AppLife.Update.Controller (in Kjs.AppLife.Update.Controller.dll) Version: 5.1.0.9 (5.1.0.9)
Syntax
public static IList<LoggedUpdate> GetUpdateHistory(
	Guid applicationId
)

Parameters

applicationId
Type: SystemGuid
ID of the application for which to retrieve an update history.

Return Value

Type: IListLoggedUpdate
A 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();
    }
}

See Also