TraceListenerCollection::IndexOf Method (TraceListener^)
.NET Framework (current version)
Gets the index of the specified listener.
Assembly: System (in System.dll)
Parameters
- listener
-
Type:
System.Diagnostics::TraceListener^
A TraceListener to find in the list.
Return Value
Type: System::Int32The index of the listener, if it can be found in the list; otherwise, -1.
.NET Framework
Available since 1.1
Available since 1.1
Show: