Прочетете на английски Редактиране

Споделяне чрез


TraceListenerCollection.Remove Method

Definition

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.

C#
public void Remove(string name);

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

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

Remove(TraceListener)

Source:
TraceListeners.cs
Source:
TraceListeners.cs
Source:
TraceListeners.cs

Removes from the collection the specified TraceListener.

C#
public void Remove(System.Diagnostics.TraceListener? listener);
C#
public void Remove(System.Diagnostics.TraceListener listener);

Parameters

listener
TraceListener

A TraceListener to remove from the list.

See also

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1