ForwardingAppender RemoveAppender Method (String) | Apache log4net™ SDK Documentation

Removes the appender with the specified name from the list of appenders.

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

C#
VB
C++
F#
Copy

    public virtual IAppender RemoveAppender(
    	string name
    )

    Public Overridable Function RemoveAppender (
    	name As String
    ) As IAppender

    public:
    virtual IAppender^ RemoveAppender(
    	String^ name
    )

    abstract RemoveAppender :
            name : string -> IAppender
    override RemoveAppender :
            name : string -> IAppender

#### Parameters

name
  Type: System
  String
  The name of the appender to remove.

#### Return Value

Type: IAppender
The appender removed from the list

#### Implements

IAppenderAttachable
RemoveAppender(String)
Remarks

The appender removed is not closed. If you are discarding the appender you must call Close
on the appender removed.
See Also

#### Reference

ForwardingAppender Class
RemoveAppender Overload
log4net.Appender Namespace