EventLogConfiguration Constructors

Definition

Initializes a new EventLogConfiguration object.

Overloads

EventLogConfiguration(String)

Initializes a new EventLogConfiguration object by specifying the local event log for which to get information and configuration settings.

EventLogConfiguration(String, EventLogSession)

Initializes a new EventLogConfiguration object by specifying the name of the log for which to get information and configuration settings. The log can be on the local computer or a remote computer, based on the event log session specified.

EventLogConfiguration(String)

Source:
EventLogConfiguration.cs
Source:
EventLogConfiguration.cs
Source:
EventLogConfiguration.cs
Source:
EventLogConfiguration.cs
Source:
EventLogConfiguration.cs
Source:
EventLogConfiguration.cs

Initializes a new EventLogConfiguration object by specifying the local event log for which to get information and configuration settings.

C#
public EventLogConfiguration(string logName);

Parameters

logName
String

The name of the local event log for which to get information and configuration settings.

See also

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

EventLogConfiguration(String, EventLogSession)

Source:
EventLogConfiguration.cs
Source:
EventLogConfiguration.cs
Source:
EventLogConfiguration.cs
Source:
EventLogConfiguration.cs
Source:
EventLogConfiguration.cs
Source:
EventLogConfiguration.cs

Initializes a new EventLogConfiguration object by specifying the name of the log for which to get information and configuration settings. The log can be on the local computer or a remote computer, based on the event log session specified.

C#
public EventLogConfiguration(string logName, System.Diagnostics.Eventing.Reader.EventLogSession session);
C#
[System.Security.SecurityCritical]
public EventLogConfiguration(string logName, System.Diagnostics.Eventing.Reader.EventLogSession session);

Parameters

logName
String

The name of the event log for which to get information and configuration settings.

session
EventLogSession

The event log session used to determine the event log service that the specified log belongs to. The session is either connected to the event log service on the local computer or a remote computer.

Attributes

See also

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10