IList.Contains Method

TraceListenerCollection.IList.Contains Method (Object)


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

Determines whether the TraceListenerCollection contains a specific object.

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

bool IList.Contains(
	object value


Type: System.Object

The object to locate in the TraceListenerCollection.

Return Value

Type: System.Boolean

true if the Object is found in the TraceListenerCollection; otherwise, false.

Use the Contains method of the TraceListenerCollection class to determine whether the collection contains a specific TraceListener object.

.NET Framework
Available since 1.1
Return to top
© 2015 Microsoft