TraceListenerCollection.IList.IndexOf Method (Object)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Determines the index of a specific object in the TraceListenerCollection.

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

int IList.IndexOf(
	object value
)

Parameters

value
Type: System.Object

The object to locate in the TraceListenerCollection.

Return Value

Type: System.Int32

The index of value if found in the TraceListenerCollection; otherwise, -1.

Use the IndexOf method of the TraceListenerCollection class to determine the index of a TraceListener object in the collection.

.NET Framework
Available since 1.1
Return to top
Show: