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()

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)

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);
[System.CLSCompliant(false)]
public EventLogTraceListener (System.Diagnostics.EventLog eventLog);
public EventLogTraceListener (System.Diagnostics.EventLog eventLog);
[<System.CLSCompliant(false)>]
new System.Diagnostics.EventLogTraceListener : System.Diagnostics.EventLog -> System.Diagnostics.EventLogTraceListener
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)

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