Share via


EventLogConfiguration Konstruktoren

Definition

Initialisiert ein neues EventLogConfiguration-Objekt.

Überlädt

EventLogConfiguration(String)

Initialisiert ein neues EventLogConfiguration-Objekt, indem das lokale Ereignisprotokoll angegeben wird, für das Informationen und Konfigurationseinstellungen abgerufen werden sollen.

EventLogConfiguration(String, EventLogSession)

Initialisiert ein neues EventLogConfiguration-Objekt, indem der Name des Protokolls angegeben wird, für das Informationen und Konfigurationseinstellungen abgerufen werden sollen. Das Protokoll kann sich je nach der angegebenen Ereignisprotokollsitzung auf dem lokalen Computer oder auf einem Remotecomputer befinden.

EventLogConfiguration(String)

Quelle:
EventLogConfiguration.cs
Quelle:
EventLogConfiguration.cs
Quelle:
EventLogConfiguration.cs

Initialisiert ein neues EventLogConfiguration-Objekt, indem das lokale Ereignisprotokoll angegeben wird, für das Informationen und Konfigurationseinstellungen abgerufen werden sollen.

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)

Parameter

logName
String

Der Name des lokalen Ereignisprotokolls, für das Informationen und Konfigurationseinstellungen abgerufen werden sollen.

Weitere Informationen

Gilt für:

EventLogConfiguration(String, EventLogSession)

Quelle:
EventLogConfiguration.cs
Quelle:
EventLogConfiguration.cs
Quelle:
EventLogConfiguration.cs

Initialisiert ein neues EventLogConfiguration-Objekt, indem der Name des Protokolls angegeben wird, für das Informationen und Konfigurationseinstellungen abgerufen werden sollen. Das Protokoll kann sich je nach der angegebenen Ereignisprotokollsitzung auf dem lokalen Computer oder auf einem Remotecomputer befinden.

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)

Parameter

logName
String

Der Name des Ereignisprotokolls, für das Informationen und Konfigurationseinstellungen abgerufen werden sollen.

session
EventLogSession

Die Ereignisprotokollsitzung, mit der der Ereignisprotokolldienst bestimmt wird, zu dem das angegebene Protokoll gehört. Die Sitzung ist entweder mit dem Ereignisprotokolldienst auf dem lokalen Computer oder auf einem Remotecomputer verbunden.

Attribute

Weitere Informationen

Gilt für: