TraceListenerCollection.Remove Method (String)

 

Removes from the collection the first TraceListener with the specified name.

Namespace:   System.Diagnostics
Assembly:  System (in System.dll)

public void Remove(
	string name
)

Parameters

name
Type: System.String

The name of the TraceListener to remove from the list.

The name parameter is case-sensitive. That is, if two listeners exist with the names "Rname" and "rname", the Remove method will find the specific listener you name.

.NET Framework
Available since 1.1
Return to top
Show: