TraceListenerCollection::IndexOf Method (TraceListener^)

 

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: