LevelCollection Add Method | Apache log4net™ SDK Documentation

Adds a Level to the end of the LevelCollection.

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

C#
VB
C++
F#
Copy

    public virtual int Add(
    	Level item
    )

    Public Overridable Function Add (
    	item As Level
    ) As Integer

    public:
    virtual int Add(
    	Level^ item
    )

    abstract Add :
            item : Level -> int
    override Add :
            item : Level -> int

#### Parameters

item
  Type: log4net.Core
  Level
  The Level to be added to the end of the LevelCollection.

#### Return Value

Type: Int32
The index at which the value has been added.
See Also

#### Reference

LevelCollection Class
log4net.Core Namespace