AppenderCollection Insert Method | Apache log4net™ SDK Documentation

Inserts an element into the AppenderCollection at the specified index.

Namespace: log4net.Appender
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,
    	IAppender item
    )

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

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

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

#### Parameters

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

Exceptions

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

See Also

#### Reference

AppenderCollection Class
log4net.Appender Namespace