Name
TraceListenerCollection
Synopsis
This class is a strongly typed,
thread-safe collection that
contains TraceListener
objects.
public class TraceListenerCollection : IList, ICollection, IEnumerable { // Public Instance Properties public int Count{get; } // implements ICollection public TraceListener this[stringname
]{get; } public TraceListener this[inti
]{set; get; } // Public Instance Methods public int Add(TraceListenerlistener
); public void AddRange(TraceListener[ ]value
); public void AddRange(TraceListenerCollectionvalue
); public void Clear( ); // implements IList public bool Contains(TraceListenerlistener
); public void CopyTo(TraceListener[ ]listeners
, intindex
); public IEnumerator GetEnumerator( ); // implements IEnumerable public int IndexOf(TraceListenerlistener
); public void Insert(intindex
, TraceListenerlistener
); public void Remove(stringname
); public void Remove(TraceListenerlistener
); public void RemoveAt(intindex
); // implements IList }
Returned By
Debug.Listeners
, Trace.Listeners
Get C# in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.