EventLogTraceListener Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
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
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應