Export (0) Print
Expand All

TextWriterTraceListener Members

Directs tracing or debugging output to a TextWriter or to a Stream, such as FileStream.

The following tables list the members exposed by the TextWriterTraceListener type.

  Name Description
Public method TextWriterTraceListener Overloaded. Initializes a new instance of the TextWriterTraceListener class.
Top

(see also Protected Properties )
  Name Description
Public property Attributes  Gets the custom trace listener attributes defined in the application configuration file.(Inherited from TraceListener.)
Public property Filter  Gets and sets the trace filter for the trace listener.(Inherited from TraceListener.)
Public property IndentLevel  Gets or sets the indent level.(Inherited from TraceListener.)
Public property IndentSize  Gets or sets the number of spaces in an indent.(Inherited from TraceListener.)
Public property IsThreadSafe  Gets a value indicating whether the trace listener is thread safe. (Inherited from TraceListener.)
Public property Name  Gets or sets a name for this TraceListener.(Inherited from TraceListener.)
Public property TraceOutputOptions  Gets or sets the trace output options.(Inherited from TraceListener.)
Public property Writer Gets or sets the text writer that receives the tracing or debugging output.
Top

  Name Description
Protected property NeedIndent  Gets or sets a value indicating whether to indent the output.(Inherited from TraceListener.)
Top

(see also Protected Methods )
  Name Description
Public method Close Overridden. Closes the Writer so that it no longer receives tracing or debugging output.
Public method CreateObjRef  Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public method Dispose Overloaded. Disposes this TextWriterTraceListener object.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)
Public method Fail  Overloaded. Emits error messages to the listener you create when you implement the TraceListener class. (Inherited from TraceListener.)
Public method Flush Overridden. Flushes the output buffer for the Writer.
Public method GetHashCode  Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.)
Public method GetLifetimeService  Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method GetType  Gets the Type of the current instance. (Inherited from Object.)
Public method InitializeLifetimeService  Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method ToString  Returns a String that represents the current Object. (Inherited from Object.)
Public method TraceData  Overloaded. Writes trace data to the listener specific output. (Inherited from TraceListener.)
Public method TraceEvent  Overloaded. Writes trace and event information to the listener specific output. (Inherited from TraceListener.)
Public method TraceTransfer  Writes trace information, a message, a related activity identity and event information to the listener specific output. (Inherited from TraceListener.)
Public method Write Overloaded. Writes a message to this instance's Writer.
Public method WriteLine Overloaded. Writes a message to this instance's Writer followed by a line terminator.
Top

  Name Description
Protected method Dispose Overloaded. Overridden. Disposes this TextWriterTraceListener object.
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Protected method GetSupportedAttributes  Gets the custom attributes supported by the trace listener. (Inherited from TraceListener.)
Protected method MemberwiseClone  Overloaded. (Inherited from MarshalByRefObject.)
Protected method WriteIndent  Writes the indent to the listener you create when you implement this class, and resets the NeedIndent property to false. (Inherited from TraceListener.)
Top

Community Additions

ADD
Show:
© 2014 Microsoft