TraceListener Class
Provides the abstract base class for the listeners who monitor trace and debug output.
Definition
Members Table
The following table lists the members exposed by the TraceListener object. Click a tab on the left to choose the type of member you want to view.
Methods
| Method | Description |
|---|
| Close | When overridden in a derived class, closes the output stream so it no longer receives tracing or debugging output. |
| Dispose | Overloaded. Releases all resources used by the TraceListener. |
| Equals | Overloaded. Compares two objects to determine if they are equal. (Inherited from Object) |
| Fail | Overloaded. Sends out an error message to the listener you create when you implement the TraceListener. |
| Flush | When overridden in a derived class, flushes the output buffer. |
| GetHashCode | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (Inherited from Object) |
| ToString | Returns a String that represents the current Object. (Inherited from Object) |
| TraceListener | Overloaded. Initializes a new instance of TraceListener. |
| Write | Overloaded. Writes a message, category name, or the value of an object's ToString method to the listener. |
| WriteIndent | Writes the indent to the listener you create when you implement this class, and resets the NeedIndent property to false. |
| WriteLine | Overloaded. Writes a message, category name, or the value of an object's ToString method to the listener, followed by a line terminator. |
Properties
| Property | Description |
|---|
| IndentLevel | Gets or sets the indent level. |
| IndentSize | Gets or sets the number of spaces in an indent. |
| Name | Gets or sets a name for this TraceListener. |
| NeedIndent | Gets or sets a value indicating whether to indent the output. |
Inheritance Hierarchy
Object
Class Information
| Namespace | System.Diagnostics |
|---|
| Flash Library | corlib.scl |
|---|
| Flash Library Version | 2.0.0.2466 |
|---|
| Silverlight Library | System.Windows.Forms.dll |
|---|