Class WindowsEventLogEntry
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents a single event log entry within an event log on a Windows machine.
public class WindowsEventLogEntry : GlobalSerializableClassicBase, IComparable<WindowsEventLogEntry>
- Inheritance
-
WindowsEventLogEntry
- Implements
Constructors
WindowsEventLogEntry()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.WindowsEventLogEntry class.
public WindowsEventLogEntry()
Properties
DateCreated
Gets or sets the time at which this event log entry was generated.
public DateTime DateCreated { get; set; }
Property Value
EntryType
Gets or sets the type of event log entry.
public WindowsEventLogEntryType EntryType { get; set; }
Property Value
EntryTypeString
Gets the type of event log entry as a human readable string reported by the system - for example "Information".
public string EntryTypeString { get; set; }
Property Value
EventId
Gets or sets the ID of this event.
public int EventId { get; set; }
Property Value
Identifier
Gets or sets the unique system assigned identifier of the event log entry. This is for internal use only.
public Guid Identifier { get; set; }
Property Value
MachineName
Gets or sets the name of the machine on which the entry was generated.
public string MachineName { get; set; }
Property Value
Message
Gets or sets the message contained within the event log entry.
public string Message { get; set; }
Property Value
ProviderName
Gets or sets the provider name of the event log entry - for example "Microsoft-Windows-CAPI2".
public string ProviderName { get; set; }
Property Value
Source
Gets or sets the source of the event log entry - for example "CAPI2".
public string Source { get; set; }
Property Value
TaskDisplayName
Gets or sets the task category.
public string TaskDisplayName { get; set; }
Property Value
TaskDisplayNameString
Gets the task category.
public string TaskDisplayNameString { get; }
Property Value
Username
Gets or sets the username associated with the entry.
public string Username { get; set; }
Property Value
UsernameString
Gets the username associated with the entry.
public string UsernameString { get; }
Property Value
Methods
CompareTo(WindowsEventLogEntry)
Compares two CENTREL.XIA.Configuration.Type.WindowsEventLogEntry objects to allow sorting by the date and time created.
public int CompareTo(WindowsEventLogEntry other)
Parameters
other
WindowsEventLogEntryThe CENTREL.XIA.Configuration.Type.WindowsEventLogEntry to compare to.
Returns
- int
The sort order of the two CENTREL.XIA.Configuration.Type.WindowsEventLogEntry objects.
ToString()
Returns the event log entry in a human readable format - "EventID [EntryType]".
public override string ToString()
Returns
- string
The event log entry in a human readable format.