This documentation is archived and is not being maintained.

<remove> Element

Removes a listener from the Listeners collection.


<remove name="listener name" />

Required Attributes

Attribute Description
name The name of the listener to remove from the Listeners collection.


The following example shows how to remove the default trace listener from the trace Listeners collection.

      <trace autoflush="true" indentsize="0">
            <remove name="Default" />

Configuration File

This element can be used in the machine configuration file (Machine.config) and the application configuration file.

See Also

Trace and Debug Settings Schema | TraceListener Class | DefaultTraceListener Class | TextWriterTraceListener Class | EventLogTraceListener Class