TraceListenerCollection Members
.NET Framework 3.5
Provides a thread-safe list of TraceListener objects.
The TraceListenerCollection type exposes the following members.
| Name | Description | |
|---|---|---|
|
Add | Adds a TraceListener to the list. |
|
AddRange | Overloaded. Adds multiple TraceListener objects to the collection. |
|
Clear | Clears all the listeners from the list. |
|
Contains | Checks whether the list contains the specified listener. |
|
CopyTo | Copies a section of the current TraceListenerCollection list to the specified array at the specified index. |
|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetEnumerator | Gets an enumerator for this list. |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetType | Gets the type of the current instance. (Inherited from Object.) |
|
IndexOf | Gets the index of the specified listener. |
|
Insert | Inserts the listener at the specified index. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
Remove | Overloaded. Removes a specific TraceListener from the collection. |
|
RemoveAt | Removes from the collection the TraceListener at the specified index. |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
|
AsQueryable | Converts an IEnumerable to an IQueryable. (Defined by Queryable.) |
|
Cast | Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.) |
|
OfType | Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.) |
| Name | Description | |
|---|---|---|
|
Count | Gets the number of listeners in the list. |
|
Item | Overloaded. Gets or sets the specified TraceListener. |
| Name | Description | |
|---|---|---|
|
IList.Add | Infrastructure. Adds a trace listener to the TraceListenerCollection. |
|
IList.Contains | Infrastructure. Determines whether the TraceListenerCollection contains a specific object. |
|
ICollection.CopyTo | Infrastructure. Copies a section of the current TraceListenerCollection to the specified array of TraceListener objects. |
|
IList.IndexOf | Infrastructure. Determines the index of a specific object in the TraceListenerCollection. |
|
IList.Insert | Infrastructure. Inserts a TraceListener object at the specified position in the TraceListenerCollection. |
|
IList.IsFixedSize | Infrastructure. Gets a value indicating whether the TraceListenerCollection has a fixed size. |
|
IList.IsReadOnly | Infrastructure. Gets a value indicating whether the TraceListenerCollection is read-only |
|
ICollection.IsSynchronized | Infrastructure. Gets a value indicating whether access to the TraceListenerCollection is synchronized (thread safe). |
|
IList.Item | Infrastructure. Gets or sets the TraceListener at the specified index in the TraceListenerCollection. |
|
IList.Remove | Infrastructure. Removes an object from the TraceListenerCollection. |
|
ICollection.SyncRoot | Infrastructure. Gets an object that can be used to synchronize access to the TraceListenerCollection. |