Rediger

Del via


EventLogTraceListener Constructors

Definition

Initializes a new instance of the EventLogTraceListener class.

Overloads

EventLogTraceListener()

Initializes a new instance of the EventLogTraceListener class without a trace listener.

EventLogTraceListener(EventLog)

Initializes a new instance of the EventLogTraceListener class using the specified event log.

EventLogTraceListener(String)

Initializes a new instance of the EventLogTraceListener class using the specified source.

EventLogTraceListener()

Source:
EventLogTraceListener.cs
Source:
EventLogTraceListener.cs
Source:
EventLogTraceListener.cs
Source:
EventLogTraceListener.cs
Source:
EventLogTraceListener.cs

Initializes a new instance of the EventLogTraceListener class without a trace listener.

public:
 EventLogTraceListener();
public EventLogTraceListener ();
Public Sub New ()

See also

Applies to

EventLogTraceListener(EventLog)

Source:
EventLogTraceListener.cs
Source:
EventLogTraceListener.cs
Source:
EventLogTraceListener.cs
Source:
EventLogTraceListener.cs
Source:
EventLogTraceListener.cs

Important

This API is not CLS-compliant.

Initializes a new instance of the EventLogTraceListener class using the specified event log.

public:
 EventLogTraceListener(System::Diagnostics::EventLog ^ eventLog);
public EventLogTraceListener (System.Diagnostics.EventLog eventLog);
[System.CLSCompliant(false)]
public EventLogTraceListener (System.Diagnostics.EventLog eventLog);
new System.Diagnostics.EventLogTraceListener : System.Diagnostics.EventLog -> System.Diagnostics.EventLogTraceListener
[<System.CLSCompliant(false)>]
new System.Diagnostics.EventLogTraceListener : System.Diagnostics.EventLog -> System.Diagnostics.EventLogTraceListener
Public Sub New (eventLog As EventLog)

Parameters

eventLog
EventLog

The event log to write to.

Attributes

See also

Applies to

EventLogTraceListener(String)

Source:
EventLogTraceListener.cs
Source:
EventLogTraceListener.cs
Source:
EventLogTraceListener.cs
Source:
EventLogTraceListener.cs
Source:
EventLogTraceListener.cs

Initializes a new instance of the EventLogTraceListener class using the specified source.

public:
 EventLogTraceListener(System::String ^ source);
public EventLogTraceListener (string source);
new System.Diagnostics.EventLogTraceListener : string -> System.Diagnostics.EventLogTraceListener
Public Sub New (source As String)

Parameters

source
String

The name of an existing event log source.

See also

Applies to