Table of Contents

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

DateTime

EntryType

Gets or sets the type of event log entry.

public WindowsEventLogEntryType EntryType { get; set; }

Property Value

WindowsEventLogEntryType

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

string

EventId

Gets or sets the ID of this event.

public int EventId { get; set; }

Property Value

int

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

Guid

MachineName

Gets or sets the name of the machine on which the entry was generated.

public string MachineName { get; set; }

Property Value

string

Message

Gets or sets the message contained within the event log entry.

public string Message { get; set; }

Property Value

string

ProviderName

Gets or sets the provider name of the event log entry - for example "Microsoft-Windows-CAPI2".

public string ProviderName { get; set; }

Property Value

string

Source

Gets or sets the source of the event log entry - for example "CAPI2".

public string Source { get; set; }

Property Value

string

TaskDisplayName

Gets or sets the task category.

public string TaskDisplayName { get; set; }

Property Value

string

TaskDisplayNameString

Gets the task category.

public string TaskDisplayNameString { get; }

Property Value

string

Username

Gets or sets the username associated with the entry.

public string Username { get; set; }

Property Value

string

UsernameString

Gets the username associated with the entry.

public string UsernameString { get; }

Property Value

string

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 WindowsEventLogEntry

The 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.