AppenderCollection ClassApache log4net™ SDK Documentation
A strongly-typed collection of IAppender objects.
Inheritance Hierarchy

SystemObject
  log4net.AppenderAppenderCollection

Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

public class AppenderCollection : IList, 
	ICollection, IEnumerable, ICloneable

The AppenderCollection type exposes the following members.

Properties

  NameDescription
Public propertyCapacity
Gets or sets the number of elements the AppenderCollection can contain.
Public propertyCount
Gets the number of elements actually contained in the AppenderCollection.
Public propertyIsFixedSize
Gets a value indicating whether the collection has a fixed size.
Public propertyIsReadOnly
Gets a value indicating whether the IList is read-only.
Public propertyIsSynchronized
Gets a value indicating whether access to the collection is synchronized (thread-safe).
Public propertyItem
Gets or sets the IAppender at the specified index.
Public propertySyncRoot
Gets an object that can be used to synchronize access to the collection.
Top
Methods

  NameDescription
Public methodAdd
Adds a IAppender to the end of the AppenderCollection.
Public methodAddRange(ICollection)
Adds the elements of a IAppender collection to the current AppenderCollection.
Public methodAddRange(AppenderCollection)
Adds the elements of another AppenderCollection to the current AppenderCollection.
Public methodAddRange(IAppender)
Adds the elements of a IAppender array to the current AppenderCollection.
Public methodClear
Removes all elements from the AppenderCollection.
Public methodClone
Creates a shallow copy of the AppenderCollection.
Public methodContains
Determines whether a given IAppender is in the AppenderCollection.
Public methodCopyTo(IAppender)
Copies the entire AppenderCollection to a one-dimensional IAppender array.
Public methodCopyTo(IAppender, Int32)
Copies the entire AppenderCollection to a one-dimensional IAppender array, starting at the specified index of the target array.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that can iterate through the AppenderCollection.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf
Returns the zero-based index of the first occurrence of a IAppender in the AppenderCollection.
Public methodInsert
Inserts an element into the AppenderCollection at the specified index.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberReadOnly
Creates a read-only wrapper for a AppenderCollection instance.
Public methodRemove
Removes the first occurrence of a specific IAppender from the AppenderCollection.
Public methodRemoveAt
Removes the element at the specified index of the AppenderCollection.
Public methodToArray
Return the collection elements as an array
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Public methodTrimToSize
Sets the capacity to the actual number of elements.
Top
Fields

  NameDescription
Public fieldStatic memberEmptyCollection
An empty readonly static AppenderCollection
Top
See Also

Reference