Table of Contents

Class WindowsEventLog

Namespace
CENTREL.XIA.Configuration.Types
Assembly
CENTREL.XIA.Configuration.Types.dll

Represents an event log on a on Windows machine.

public class WindowsEventLog : GlobalSerializableClassicBase, IComparable<WindowsEventLog>
Inheritance
WindowsEventLog
Implements

Constructors

WindowsEventLog()

Initializes a new instance of the CENTREL.XIA.Configuration.Types.WindowsEventLog class.

public WindowsEventLog()

Properties

DateCreated

Gets or sets the date and time the event log was created.

public DateTime DateCreated { get; set; }

Property Value

DateTime

DateLastAccessed

Gets or sets the date and time the event log was last accessed.

public DateTime DateLastAccessed { get; set; }

Property Value

DateTime

DateLastModified

Gets or sets the date and time the event log was last modified.

public DateTime DateLastModified { get; set; }

Property Value

DateTime

DisplayName

Gets display name of the event log if available, otherwise the name.

public string DisplayName { get; set; }

Property Value

string

Entries

Gets or sets the recent event log entries.

public WindowsEventLogEntries Entries { get; set; }

Property Value

WindowsEventLogEntries

FileSize

Gets or sets the size of the event log at the time of the scan in KB.

public long FileSize { get; set; }

Property Value

long

FileSizeString

Gets the size of the event log at the time of the scan as a human readable string.

public string FileSizeString { get; set; }

Property Value

string

IsClassicLog

Gets or sets whether the event log is a classic event log.

public BooleanOption IsClassicLog { get; set; }

Property Value

BooleanOption

IsEnabled

Gets or sets whether the event log is enabled.

public BooleanOption IsEnabled { get; set; }

Property Value

BooleanOption

LogFilePath

Gets or sets the absolute path to the event log file - for example "C:\WINNT\system32\config\SysEvent.Evt".

public string LogFilePath { get; set; }

Property Value

string

LogType

Gets or sets the log type.

public WindowsEventLogType LogType { get; set; }

Property Value

WindowsEventLogType

LogTypeString

Gets the log type as a human readable string.

public string LogTypeString { get; set; }

Property Value

string

MaximumFileSize

Gets or sets the maximum size that the event log is allowed to grow to in KB.

public long MaximumFileSize { get; set; }

Property Value

long

MaximumFileSizeString

Gets the maximum size that the event log is allowed to grow to as a human readable string.

public string MaximumFileSizeString { get; set; }

Property Value

string

Name

Gets or sets the name of the event log - for example "System" or "Application".

public string Name { get; set; }

Property Value

string

RecordCount

Gets or sets the total number of event log entries that the event log contained at the time of the scan. A record count of minus one indicates the information is not available.

public long RecordCount { get; set; }

Property Value

long

RetentionPolicy

Gets or sets the retention policy for the event log.

public WindowsEventLogRetentionPolicy RetentionPolicy { get; set; }

Property Value

WindowsEventLogRetentionPolicy

RetentionPolicyString

Gets the retention policy for the event log - for example "Overwrite events as needed".

public string RetentionPolicyString { get; set; }

Property Value

string

Security

Gets or sets the security descriptor for the event log.

public WindowsEventLogSecurityDescriptor Security { get; set; }

Property Value

WindowsEventLogSecurityDescriptor

Methods

CompareTo(WindowsEventLog)

Compares two CENTREL.XIA.Configuration.Types.WindowsEventLog objects to allow sorting alphabetically by event log name.

public int CompareTo(WindowsEventLog other)

Parameters

other WindowsEventLog

The event log to compare to.

Returns

int

The sort order of the two CENTREL.XIA.Configuration.Types.WindowsEventLog objects.