TraceListenerCollection.IList.IndexOf Method (Object)


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

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)

private abstract IndexOf : 
        value:Object -> int
private override IndexOf : 
        value:Object -> int


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