log4net SDK Reference |

# AppenderCollection.IndexOf Method

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

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

#### Parameters

item
  The IAppender to locate in the `AppenderCollection`.

#### Return Value

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

#### Remarks

Missing <remarks> documentation for M:log4net.Appender.AppenderCollection.IndexOf(log4net.Appender.IAppender)

#### See Also

AppenderCollection Class | log4net.Appender Namespace