log4net SDK Reference |

# PluginCollection.IndexOf Method

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

[Visual Basic]
Overridable Public Function IndexOf( _
ByVal item As IPlugin _
) As Integer
[C#]
public virtual int IndexOf(
IPlugin item
);

#### Parameters

item
  The IPlugin to locate in the `PluginCollection`.

#### Return Value

The zero-based index of the first occurrence of item in the entire `PluginCollection`, if found; otherwise, -1.

#### Remarks

Missing <remarks> documentation for M:log4net.Plugin.PluginCollection.IndexOf(log4net.Plugin.IPlugin)

#### See Also

PluginCollection Class | log4net.Plugin Namespace