NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

TraceListeners.Contains

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;

Parameters

listener
A System.TraceListener that you want to find in the list.

Return Value

true if the listener is in the list; otherwise, false.

Remarks

The Contains method can be used to confirm the existence of a TraceListener before performing further operations.

See Also

TraceListeners Class | TraceListeners Members | System.Diagnostics Namespace | TraceListeners | TraceListener | DefaultTraceListener | TextWriterTraceListener | Debug | Trace