PluginCollection Insert Method | Apache log4net™ SDK Documentation

Inserts an element into the PluginCollection at the specified index.

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

C#
VB
C++
F#
Copy

    public virtual void Insert(
    	int index,
    	IPlugin item
    )

    Public Overridable Sub Insert (
    	index As Integer,
    	item As IPlugin
    )

    public:
    virtual void Insert(
    	int index,
    	IPlugin^ item
    )

    abstract Insert :
            index : int *
            item : IPlugin -> unit
    override Insert :
            index : int *
            item : IPlugin -> unit

#### Parameters

index
  Type: System
  Int32
  The zero-based index at which item should be inserted.
item
  Type: log4net.Plugin
  IPlugin
  The IPlugin to insert.

Exceptions

Exception | Condition
--- | ---
ArgumentOutOfRangeException | index is less than zero -or- index is equal to or greater than Count.

See Also

#### Reference

PluginCollection Class
log4net.Plugin Namespace