AppenderCollection Remove Method | Apache log4net™ SDK Documentation

Removes the first occurrence of a specific IAppender from 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 void Remove(
    	IAppender item
    )

    Public Overridable Sub Remove (
    	item As IAppender
    )

    public:
    virtual void Remove(
    	IAppender^ item
    )

    abstract Remove :
            item : IAppender -> unit
    override Remove :
            item : IAppender -> unit

#### Parameters

item
  Type: log4net.Appender
  IAppender
  The IAppender to remove from the AppenderCollection.

Exceptions

Exception | Condition
--- | ---
ArgumentException | The specified IAppender was not found in the AppenderCollection.

See Also

#### Reference

AppenderCollection Class
log4net.Appender Namespace