TraceListenerCollection.IndexOf Method (TraceListener)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the index of the specified listener.

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

public int IndexOf(
	TraceListener listener
)

Parameters

listener
Type: System.Diagnostics.TraceListener

A TraceListener to find in the list.

Return Value

Type: System.Int32

The index of the listener, if it can be found in the list; otherwise, -1.

.NET Framework
Available since 1.1
Return to top
Show: