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::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)

private:
virtual int IndexOf(
	Object^ value
) sealed = IList::IndexOf

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