Bewerken

Share via


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

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

public:
 EventLogConfiguration(System::String ^ logName);
public EventLogConfiguration (string logName);
new System.Diagnostics.Eventing.Reader.EventLogConfiguration : string -> System.Diagnostics.Eventing.Reader.EventLogConfiguration
Public Sub New (logName As String)

Parameters

logName
String

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

See also

Applies to

EventLogConfiguration(String, EventLogSession)

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.

public:
 EventLogConfiguration(System::String ^ logName, System::Diagnostics::Eventing::Reader::EventLogSession ^ session);
public EventLogConfiguration (string logName, System.Diagnostics.Eventing.Reader.EventLogSession session);
[System.Security.SecurityCritical]
public EventLogConfiguration (string logName, System.Diagnostics.Eventing.Reader.EventLogSession session);
new System.Diagnostics.Eventing.Reader.EventLogConfiguration : string * System.Diagnostics.Eventing.Reader.EventLogSession -> System.Diagnostics.Eventing.Reader.EventLogConfiguration
[<System.Security.SecurityCritical>]
new System.Diagnostics.Eventing.Reader.EventLogConfiguration : string * System.Diagnostics.Eventing.Reader.EventLogSession -> System.Diagnostics.Eventing.Reader.EventLogConfiguration
Public Sub New (logName As String, session As EventLogSession)

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