Table of Contents

Class WindowsEventLogCollection

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

Represents a collection of Windows event logs.

public class WindowsEventLogCollection : Collection<WindowsEventLog>, IList<WindowsEventLog>, ICollection<WindowsEventLog>, IList, ICollection, IReadOnlyList<WindowsEventLog>, IReadOnlyCollection<WindowsEventLog>, IEnumerable<WindowsEventLog>, IEnumerable
Inheritance
WindowsEventLogCollection
Implements
Inherited Members

Constructors

WindowsEventLogCollection()

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

public WindowsEventLogCollection()

Methods

Exists(string)

Returns a System.Boolean value that indicates whether an event log with the specified name exists within the collection.

public bool Exists(string name)

Parameters

name string

The name of the event log to find - for example "Application".

Returns

bool

A System.Boolean value that indicates whether an event log with the specified name exists within the collection.

FindByName(string)

Returns the event log with the specified name, or null if no event log with that name is found.

public WindowsEventLog FindByName(string name)

Parameters

name string

The name of the event log to find - for example "Application".

Returns

WindowsEventLog

The event log with the specified name, or null if no event log with that name is found.

FindEventLogEntryByIdentifier(Guid)

Returns the CENTREL.XIA.Configuration.Types.WindowsEventLogEntry with the specified unique identifier regardless of the event log in which it resides, or null if no CENTREL.XIA.Configuration.Types.WindowsEventLogEntry with that identifier is found.

public WindowsEventLogEntry FindEventLogEntryByIdentifier(Guid identifier)

Parameters

identifier Guid

The unique identifier of the CENTREL.XIA.Configuration.Types.WindowsEventLogEntry to locate.

Returns

WindowsEventLogEntry

The CENTREL.XIA.Configuration.Types.WindowsEventLogEntry with the specified unique identifier.

Sort()

Sorts the values in the collection.

public void Sort()