Class WindowsPatch
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents a patch installed on a Windows machine.
public class WindowsPatch : GlobalSerializableClassicBase, IComparable<WindowsPatch>
- Inheritance
-
WindowsPatch
- Implements
Constructors
WindowsPatch()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.WindowsPatch class.
public WindowsPatch()
Properties
Caption
Gets or sets the display name for this patch - for example "http://support.microsoft.com/?kbid=951978". If the patch has no caption, the HotFixId is returned.
public string Caption { get; set; }
Property Value
Description
Gets or sets the description of the patch - for example "Security Update".
public string Description { get; set; }
Property Value
HotFixId
Gets or sets the hotfix identifier for Microsoft hotfixes - for example "982861".
public string HotFixId { get; set; }
Property Value
InstalledBy
Gets or sets the user account that installed the patch. This is displayed in the format of "username" prior to Windows Vista. For Windows Vista and above this is in the format of "domain\username".
public string InstalledBy { get; set; }
Property Value
InstalledOn
Gets or sets the date on which the patch was installed in the format "M/d/yyyy" - for example "7/14/2011".
public string InstalledOn { get; set; }
Property Value
InstalledOnDate
Gets the date on which the patch was installed as a System.DateTime value.
public DateTime InstalledOnDate { get; set; }
Property Value
Methods
CompareTo(WindowsPatch)
Compares two CENTREL.XIA.Configuration.Types.WindowsPatch objects to allow sorting by hotfix ID.
public int CompareTo(WindowsPatch other)
Parameters
other
WindowsPatchThe CENTREL.XIA.Configuration.Types.WindowsPatch to compare to.
Returns
- int
The sort order of the two CENTREL.XIA.Configuration.Types.WindowsPatch objects.
ToString()
Return the HotFixId for Microsoft hotfixes - for example "982861".
public override string ToString()
Returns
- string
The HotFixId of this patch.