Export (0) Print
Expand All

TraceListenerCollection.Contains Method

Checks whether the list contains the specified listener.

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

public bool Contains(
	TraceListener listener
)

Parameters

listener
Type: System.Diagnostics.TraceListener

A TraceListener to find in the list.

Return Value

Type: System.Boolean
true if the listener is in the list; otherwise, false.

The Contains method can confirm the existence of a TraceListener before you perform further operations.

.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
Show:
© 2015 Microsoft