LevelCollection Item Property | Apache log4net™ SDK Documentation

Gets or sets the Level at the specified index.

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

C#
VB
C++
F#
Copy

    public virtual Level this[
    	int index
    ] { get; set; }

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

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

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

#### Parameters

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

#### Property Value

Type: Level
Exceptions

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

See Also

#### Reference

LevelCollection Class
log4net.Core Namespace