Checks whether the list contains the specified listener.
[Visual Basic] Public Function Contains( _ ByVal listener As TraceListener _ ) As Boolean [C#] public bool Contains( TraceListener listener ); [C++] public: bool Contains( TraceListener* listener ); [JScript] public function Contains( listener : TraceListener ) : Boolean;
true if the listener is in the list; otherwise, false.
The Contains method can be used to confirm the existence of a TraceListener before performing further operations.
TraceListeners Class | TraceListeners Members | System.Diagnostics Namespace | TraceListeners | TraceListener | DefaultTraceListener | TextWriterTraceListener | Debug | Trace