AppenderCollection IndexOf Method | Apache log4net™ SDK Documentation

Returns the zero-based index of the first occurrence of a IAppender in the AppenderCollection.

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

C#
VB
C++
F#
Copy

    public virtual int IndexOf(
    	IAppender item
    )

    Public Overridable Function IndexOf (
    	item As IAppender
    ) As Integer

    public:
    virtual int IndexOf(
    	IAppender^ item
    )

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

#### Parameters

item
  Type: log4net.Appender
  IAppender
  The IAppender to locate in the AppenderCollection.

#### Return Value

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

#### Reference

AppenderCollection Class
log4net.Appender Namespace