Class WindowsUpdateHistoryItem
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents an event such as a patch install or uninstall from Windows Update.
public class WindowsUpdateHistoryItem : GlobalSerializableClassicBase, IComparable<WindowsUpdateHistoryItem>
- Inheritance
-
WindowsUpdateHistoryItem
- Implements
Constructors
WindowsUpdateHistoryItem()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.WindowsUpdateHistoryItem class.
public WindowsUpdateHistoryItem()
Properties
ActionDate
Gets or sets the date that the action was performed.
public DateTime ActionDate { get; set; }
Property Value
CollectionIndex
Gets the unique ID for this update history item in the format "Title - Operation - Date".
public string CollectionIndex { get; }
Property Value
Remarks
This ID must be generated as the same patch may be installed multiple times (for example if it fails).
Description
Gets or sets the description of the update - for example "Fix for KB2656356".
public string Description { get; set; }
Property Value
Operation
Gets or sets the operation that was performed - for example "Install" or "Uninstall".
public WindowsUpdateOperation Operation { get; set; }
Property Value
OperationString
Gets or sets the operation that was performed as a human readable string - for example "Install" or "Uninstall".
public string OperationString { get; set; }
Property Value
Result
Gets or sets the result of the Windows Update action.
public WindowsUpdateResult Result { get; set; }
Property Value
ResultString
Gets or sets the result as a human readable string.
public string ResultString { get; set; }
Property Value
Title
Gets or sets the title for the update - for example "Security Update for Windows (KB2656356)".
public string Title { get; set; }
Property Value
UpdateMethod
Gets or sets the method of the update for example "WindowsUpdate" or "wusa".
public string UpdateMethod { get; set; }
Property Value
Methods
CompareTo(WindowsUpdateHistoryItem)
Compares two CENTREL.XIA.Configuration.Types.WindowsUpdateHistoryItem objects allow sorting alphabetically by the date that the action was performed.
public int CompareTo(WindowsUpdateHistoryItem other)
Parameters
other
WindowsUpdateHistoryItemThe CENTREL.XIA.Configuration.Types.WindowsUpdateHistoryItem object to compare to.
Returns
- int
The sort order of the two CENTREL.XIA.Configuration.Types.WindowsUpdateHistoryItem objects.
ToString()
Returns the Windows Update history item as a human readable string in the format "Title [Operation]".
public override string ToString()
Returns
- string
The Windows Update history item as a human readable string.