LevelCollection IndexOf Method | Apache log4net™ SDK Documentation

Returns the zero-based index of the first occurrence of a Level in 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 IndexOf(
    	Level item
    )

    Public Overridable Function IndexOf (
    	item As Level
    ) As Integer

    public:
    virtual int IndexOf(
    	Level^ item
    )

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

#### Parameters

item
  Type: log4net.Core
  Level
  The Level to locate in the LevelCollection.

#### Return Value

Type: Int32
The zero-based index of the first occurrence of item in the entire LevelCollection, if found; otherwise, -1.
See Also

#### Reference

LevelCollection Class
log4net.Core Namespace