PluginCollection Class | Apache log4net™ SDK Documentation

A strongly-typed collection of IPlugin objects.
Inheritance Hierarchy

System
Object
log4net.Plugin
PluginCollection

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

C#
VB
C++
F#
Copy

    public class PluginCollection : IList,
    	ICollection, IEnumerable, ICloneable

    Public Class PluginCollection
    	Implements IList, ICollection, IEnumerable, ICloneable

    public ref class PluginCollection : IList,
    	ICollection, IEnumerable, ICloneable

    type PluginCollection =
        class
            interface IList
            interface ICollection
            interface IEnumerable
            interface ICloneable
        end

The PluginCollection type exposes the following members.

Properties

| Name | Description
--- | --- | ---
| Capacity | Gets or sets the number of elements the PluginCollection can contain.
| Count | Gets the number of elements actually contained in the PluginCollection.
| IsFixedSize | Gets a value indicating whether the collection has a fixed size.
| IsReadOnly | Gets a value indicating whether the IList is read-only.
| IsSynchronized | Gets a value indicating whether access to the collection is synchronized (thread-safe).
| Item | Gets or sets the IPlugin at the specified index.
| SyncRoot | Gets an object that can be used to synchronize access to the collection.

Top
Methods

| Name | Description
--- | --- | ---
| Add | Adds a IPlugin to the end of the PluginCollection.
| AddRange(ICollection) | Adds the elements of a IPlugin collection to the current PluginCollection.
| AddRange( IPlugin ) | Adds the elements of a IPlugin array to the current PluginCollection.
| AddRange(PluginCollection) | Adds the elements of another PluginCollection to the current PluginCollection.
| Clear | Removes all elements from the PluginCollection.
| Clone | Creates a shallow copy of the PluginCollection.
| Contains | Determines whether a given IPlugin is in the PluginCollection.
| CopyTo( IPlugin ) | Copies the entire PluginCollection to a one-dimensional IPlugin array.
| CopyTo( IPlugin , Int32) | Copies the entire PluginCollection to a one-dimensional IPlugin array, starting at the specified index of the target array.
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
| GetEnumerator | Returns an enumerator that can iterate through the PluginCollection.
| 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 | Returns the zero-based index of the first occurrence of a IPlugin in the PluginCollection.
| Insert | Inserts an element into the PluginCollection at the specified index.
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.)
| ReadOnly | Creates a read-only wrapper for a PluginCollection instance.
| Remove | Removes the first occurrence of a specific IPlugin from the PluginCollection.
| RemoveAt | Removes the element at the specified index of the PluginCollection.
| ToString | Returns a String that represents the current Object. (Inherited from Object.)
| TrimToSize | Sets the capacity to the actual number of elements.

Top
See Also

#### Reference

log4net.Plugin Namespace