log4net SDK Reference |

# AppenderCollection Methods

The methods of the AppenderCollection class are listed below. For a complete list of AppenderCollection class members, see the AppenderCollection Members topic.

#### Public Static (Shared) Methods

ReadOnly | Creates a read-only wrapper for a `AppenderCollection` instance.

#### Public Instance Methods

Add | Adds a IAppender to the end of the `AppenderCollection`.
AddRange | Overloaded. Adds the elements of a IAppender collection to the current `AppenderCollection`.
Clear | Removes all elements from the `AppenderCollection`.
Clone | Creates a shallow copy of the AppenderCollection.
Contains | Determines whether a given IAppender is in the `AppenderCollection`.
CopyTo | Overloaded. Copies the entire `AppenderCollection` to a one-dimensional IAppender array, starting at the specified index of the target array.
Equals (inherited from Object) | Determines whether the specified Object is equal to the current Object.
GetEnumerator | Returns an enumerator that can iterate through the `AppenderCollection`.
GetHashCode (inherited from Object) | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) | Gets the Type of the current instance.
IndexOf | Returns the zero-based index of the first occurrence of a IAppender in the `AppenderCollection`.
Insert | Inserts an element into the `AppenderCollection` at the specified index.
Remove | Removes the first occurrence of a specific IAppender from the `AppenderCollection`.
RemoveAt | Removes the element at the specified index of the `AppenderCollection`.
ToArray | Return the collection elements as an array
ToString (inherited from Object) | Returns a String that represents the current Object.
TrimToSize | Sets the capacity to the actual number of elements.

#### Protected Instance Methods

Finalize (inherited from Object) | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object) | Creates a shallow copy of the current Object.

#### See Also

AppenderCollection Class | log4net.Appender Namespace