This documentation is archived and is not being maintained.

TraceListener Members

TraceListener overview

Public Properties

public propertyIndentLevel

Supported by the .NET Compact Framework.

Gets or sets the indent level.
public propertyIndentSize

Supported by the .NET Compact Framework.

Gets or sets the number of spaces in an indent.
public propertyName

Supported by the .NET Compact Framework.

Gets or sets a name for this TraceListener.

Public Methods

public methodClose

Supported by the .NET Compact Framework.

When overridden in a derived class, closes the output stream so it no longer receives tracing or debugging output.
public methodCreateObjRef (inherited from MarshalByRefObject) Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
public methodDispose Overloaded. Releases the resources used by the TraceListener.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodFail

Supported by the .NET Compact Framework.

Overloaded. Emits error messages to the listener you create when you implement the TraceListener class.
public methodFlush

Supported by the .NET Compact Framework.

When overridden in a derived class, flushes the output buffer.
public methodGetHashCode (inherited from Object)

Supported by the .NET Compact Framework.

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetLifetimeService (inherited from MarshalByRefObject) Retrieves the current lifetime service object that controls the lifetime policy for this instance.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodInitializeLifetimeService (inherited from MarshalByRefObject) Obtains a lifetime service object to control the lifetime policy for this instance.
public methodToString (inherited from Object)

Supported by the .NET Compact Framework.

Returns a String that represents the current Object.
public methodWrite

Supported by the .NET Compact Framework.

Overloaded. Writes a message, category name, or the value of an object's ToString method to the listener you create when you implement the TraceListener class.
public methodWriteLine

Supported by the .NET Compact Framework.

Overloaded. Writes a message, category name, or the value of an object's ToString method to the listener you create when you implement the TraceListener class, followed by a line terminator.

Protected Constructors

protected constructorTraceListener Constructor

Supported by the .NET Compact Framework.

Overloaded. Initializes a new instance of the TraceListener class.

Protected Properties

protected propertyNeedIndent

Supported by the .NET Compact Framework.

Gets or sets a value indicating whether to indent the output.

Protected Methods

protected methodDispose Overloaded. Releases the resources used by the TraceListener.
protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.
protected methodWriteIndent

Supported by the .NET Compact Framework.

Writes the indent to the listener you create when you implement this class, and resets the NeedIndent property to false.

See Also

TraceListener Class | System.Diagnostics Namespace

Show: