AppenderCollection Item Property | Apache log4net™ SDK Documentation

Gets or sets the IAppender 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 IAppender this[
    	int index
    ] { get; set; }

    Public Overridable Default Property Item (
    	index As Integer
    ) As IAppender
    	Get
    	Set

    public:
    virtual property IAppender^ default[int index] {
    	IAppender^ get (int index);
    	void set (int index, IAppender^ value);
    }

    abstract Item : IAppender with get, set
    override Item : IAppender with get, set

#### Parameters

index
  Type: System
  Int32
  The zero-based index of the element to get or set.

#### Property Value

Type: IAppender
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