Name
EventLogTraceListener
Synopsis
To capture trace and debug output to an EventLog
, add an instance of this class to Debug.Listeners
or Trace.Listeners
.
You can specify an EventLog
instance in the
constructor or the name of an event source as a string.
Public NotInheritable Class EventLogTraceListener : Inherits TraceListener ' Public Constructors Public Sub New() Public Sub New( ByVal eventLog As EventLog) Public Sub New( ByVal source As String) ' Public Instance Properties Public Property EventLog As EventLog Overrides Public Property Name As String ' Public Instance Methods Overrides Public Sub Close() Overrides Public Sub Write( ByVal message As String) Overrides Public Sub WriteLine( ByVal message As String) ' Protected Instance Methods Overrides Protected Sub Dispose(ByVal disposing As Boolean) End Class
Hierarchy
System.Object→System.MarshalByRefObject→TraceListener(System.IDisposable)→ EventLogTraceListener
Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.