Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft