Export (0) Print
Expand All

TraceListenerCollection.IList.Contains Method

This API supports the .NET Framework 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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0
© 2015 Microsoft