TraceListenerCollection.Remove Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes a specific TraceListener from the collection.
Overloads
Remove(String) |
Removes from the collection the first TraceListener with the specified name. |
Remove(TraceListener) |
Removes from the collection the specified TraceListener. |
Remove(String)
- Source:
- TraceListeners.cs
- Source:
- TraceListeners.cs
- Source:
- TraceListeners.cs
Removes from the collection the first TraceListener with the specified name.
public:
void Remove(System::String ^ name);
public void Remove (string name);
member this.Remove : string -> unit
Public Sub Remove (name As String)
Parameters
- name
- String
The name of the TraceListener to remove from the list.
Remarks
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.
See also
- TraceListenerCollection
- TraceListener
- DefaultTraceListener
- TextWriterTraceListener
- ConsoleTraceListener
- Debug
- Trace
Applies to
Remove(TraceListener)
- Source:
- TraceListeners.cs
- Source:
- TraceListeners.cs
- Source:
- TraceListeners.cs
Removes from the collection the specified TraceListener.
public:
void Remove(System::Diagnostics::TraceListener ^ listener);
public void Remove (System.Diagnostics.TraceListener? listener);
public void Remove (System.Diagnostics.TraceListener listener);
member this.Remove : System.Diagnostics.TraceListener -> unit
Public Sub Remove (listener As TraceListener)
Parameters
- listener
- TraceListener
A TraceListener to remove from the list.
See also
- TraceListenerCollection
- TraceListener
- DefaultTraceListener
- TextWriterTraceListener
- ConsoleTraceListener
- Debug
- Trace