Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

TraceListenerCollection Methods

The TraceListenerCollection type exposes the following members.

  Name Description
Public method Add Adds a TraceListener to the list.
Public method AddRange(TraceListener[]) Adds an array of TraceListener objects to the list.
Public method AddRange(TraceListenerCollection) Adds the contents of another TraceListenerCollection to the list.
Public method Clear Clears all the listeners from the list.
Public method Contains Checks whether the list contains the specified listener.
Public method CopyTo Copies a section of the current TraceListenerCollection list to the specified array at the specified index.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetEnumerator Gets an enumerator for this list.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IndexOf Gets the index of the specified listener.
Public method Insert Inserts the listener at the specified index.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Remove(String) Removes from the collection the first TraceListener with the specified name.
Public method Remove(TraceListener) Removes from the collection the specified TraceListener.
Public method RemoveAt Removes from the collection the TraceListener at the specified index.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
  Name Description
Public Extension Method AsParallel Enables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension Method AsQueryable Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension Method Cast<TResult> Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension Method OfType<TResult> Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top
  Name Description
Explicit interface implemetation Private method ICollection.CopyTo Infrastructure. Copies a section of the current TraceListenerCollection to the specified array of TraceListener objects.
Explicit interface implemetation Private method IList.Add Infrastructure. Adds a trace listener to the TraceListenerCollection.
Explicit interface implemetation Private method IList.Contains Infrastructure. Determines whether the TraceListenerCollection contains a specific object.
Explicit interface implemetation Private method IList.IndexOf Infrastructure. Determines the index of a specific object in the TraceListenerCollection.
Explicit interface implemetation Private method IList.Insert Infrastructure. Inserts a TraceListener object at the specified position in the TraceListenerCollection.
Explicit interface implemetation Private method IList.Remove Infrastructure. Removes an object from the TraceListenerCollection.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.