PluginCollection IndexOf Method | Apache log4net™ SDK Documentation

Returns the zero-based index of the first occurrence of a IPlugin in the PluginCollection.

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

C#
VB
C++
F#
Copy

    public virtual int IndexOf(
    	IPlugin item
    )

    Public Overridable Function IndexOf (
    	item As IPlugin
    ) As Integer

    public:
    virtual int IndexOf(
    	IPlugin^ item
    )

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

#### Parameters

item
  Type: log4net.Plugin
  IPlugin
  The IPlugin to locate in the PluginCollection.

#### Return Value

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

#### Reference

PluginCollection Class
log4net.Plugin Namespace