Export (0) Print
Expand All

TraceListenerCollection Methods

The methods of the TraceListenerCollection class are listed here. For a complete list of TraceListenerCollection class members, see the TraceListenerCollection Members topic.

Public Methods

public methodAdd

Supported by the .NET Compact Framework.

Adds a TraceListener to the list.
public methodAddRange Overloaded. Adds multiple TraceListener objects to the collection.
public methodClear

Supported by the .NET Compact Framework.

Clears all the listeners from the list.
public methodContains

Supported by the .NET Compact Framework.

Checks whether the list contains the specified listener.
public methodCopyTo

Supported by the .NET Compact Framework.

Copies a section of the current TraceListenerCollection list to the specified array at the specified index.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

Gets an enumerator for this list.
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 methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodIndexOf

Supported by the .NET Compact Framework.

Gets the index of the specified listener.
public methodInsert

Supported by the .NET Compact Framework.

Inserts the listener at the specified index.
public methodRemove

Supported by the .NET Compact Framework.

Overloaded. Removes a specific TraceListener from the collection.
public methodRemoveAt

Supported by the .NET Compact Framework.

Removes from the collection the TraceListener at the specified index.
public methodToString (inherited from Object)

Supported by the .NET Compact Framework.

Returns a String that represents the current Object.

Protected Methods

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.

See Also

TraceListenerCollection Class | System.Diagnostics Namespace

Show:
© 2014 Microsoft