Name
TextWriterTraceListener
Synopsis
This class writes to a System.IO.TextWriter
. Use Writer
to set or change the TextWriter
.
Public Class TextWriterTraceListener : Inherits TraceListener ' Public Constructors Public Sub New() Public Sub New( ByVal stream As System.IO.Stream) Public Sub New(ByVal stream As System.IO.Stream, ByVal name As String) Public Sub New( ByVal fileName As String) Public Sub New(ByVal fileName As String, ByVal name As String) Public Sub New( ByVal writer As System.IO.TextWriter) Public Sub New(ByVal writer As System.IO.TextWriter, ByVal name As String) ' Public Instance Properties Public Property Writer As TextWriter ' Public Instance Methods Overrides Public Sub Close() Overrides Public Sub Flush() 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)→ TextWriterTraceListener
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.