LevelCollection ClassApache log4net™ SDK Documentation
A strongly-typed collection of Level objects.
Inheritance Hierarchy

SystemObject
  log4net.CoreLevelCollection

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

public class LevelCollection : IList, 
	ICollection, IEnumerable, ICloneable

The LevelCollection type exposes the following members.

Constructors

  NameDescription
Public methodLevelCollection
Initializes a new instance of the LevelCollection class that is empty and has the default initial capacity.
Public methodLevelCollection(ICollection)
Initializes a new instance of the LevelCollection class that contains elements copied from the specified Level collection.
Public methodLevelCollection(Int32)
Initializes a new instance of the LevelCollection class that has the specified initial capacity.
Public methodLevelCollection(Level)
Initializes a new instance of the LevelCollection class that contains elements copied from the specified Level array.
Public methodLevelCollection(LevelCollection)
Initializes a new instance of the LevelCollection class that contains elements copied from the specified LevelCollection.
Protected methodLevelCollection(LevelCollectionTag)
Allow subclasses to avoid our default constructors
Top
Properties

  NameDescription
Public propertyCapacity
Gets or sets the number of elements the LevelCollection can contain.
Public propertyCount
Gets the number of elements actually contained in the LevelCollection.
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 Level 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 Level to the end of the LevelCollection.
Public methodAddRange(ICollection)
Adds the elements of a Level collection to the current LevelCollection.
Public methodAddRange(Level)
Adds the elements of a Level array to the current LevelCollection.
Public methodAddRange(LevelCollection)
Adds the elements of another LevelCollection to the current LevelCollection.
Public methodClear
Removes all elements from the LevelCollection.
Public methodClone
Creates a shallow copy of the LevelCollection.
Public methodContains
Determines whether a given Level is in the LevelCollection.
Public methodCopyTo(Level)
Copies the entire LevelCollection to a one-dimensional Level array.
Public methodCopyTo(Level, Int32)
Copies the entire LevelCollection to a one-dimensional Level 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 LevelCollection.
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 Level in the LevelCollection.
Public methodInsert
Inserts an element into the LevelCollection 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 LevelCollection instance.
Public methodRemove
Removes the first occurrence of a specific Level from the LevelCollection.
Public methodRemoveAt
Removes the element at the specified index of the LevelCollection.
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
See Also

Reference