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 Class

Provides a thread-safe list of TraceListeners. A thread-safe list is synchronized.

Object
   TraceListeners

[Visual Basic]
Public Class TraceListeners
   Implements IList, ICollection, IEnumerable
[C#]
public class TraceListeners : IList, ICollection, IEnumerable
[C++]
public __gc class TraceListeners : public IList, ICollection,
   IEnumerable
[JScript]
public class TraceListeners implements IList, ICollection,
   IEnumerable

Remarks

This list is thread-safe because the accessors and the enumerator do not take synchronization locks. Methods like Add, Remove, and Clear atomically modify the list.

The TraceListeners class provides the following properties for information about the list: Count, IsReadOnly, SyncRoot, IsSynchronized. It also provides the following methods: Contains, GetEnumerator, IndexOf,

This class also provides the following methods to modify the list: Add, Clear, Insert, and Remove. The CopyTo method copies a part of the list to an array. The RemoveAt method deletes the list member at a specified index number.

Requirements

Namespace: System.Diagnostics

Assembly: System.dll

See Also

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