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
DateLastAccessed
Gets or sets the date and time the event log was last accessed.
public DateTime DateLastAccessed { get; set; }
Property Value
DateLastModified
Gets or sets the date and time the event log was last modified.
public DateTime DateLastModified { get; set; }
Property Value
DisplayName
Gets display name of the event log if available, otherwise the name.
public string DisplayName { get; set; }
Property Value
Entries
Gets or sets the recent event log entries.
public WindowsEventLogEntries Entries { get; set; }
Property Value
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
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
IsClassicLog
Gets or sets whether the event log is a classic event log.
public BooleanOption IsClassicLog { get; set; }
Property Value
IsEnabled
Gets or sets whether the event log is enabled.
public BooleanOption IsEnabled { get; set; }
Property Value
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
LogType
Gets or sets the log type.
public WindowsEventLogType LogType { get; set; }
Property Value
LogTypeString
Gets the log type as a human readable string.
public string LogTypeString { get; set; }
Property Value
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
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
Name
Gets or sets the name of the event log - for example "System" or "Application".
public string Name { get; set; }
Property Value
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
RetentionPolicy
Gets or sets the retention policy for the event log.
public WindowsEventLogRetentionPolicy RetentionPolicy { get; set; }
Property Value
RetentionPolicyString
Gets the retention policy for the event log - for example "Overwrite events as needed".
public string RetentionPolicyString { get; set; }
Property Value
Security
Gets or sets the security descriptor for the event log.
public WindowsEventLogSecurityDescriptor Security { get; set; }
Property Value
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
WindowsEventLogThe event log to compare to.
Returns
- int
The sort order of the two CENTREL.XIA.Configuration.Types.WindowsEventLog objects.