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

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

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

C#
VB
C++
F#
Copy

    public IAppender RemoveAppender(
    	string name
    )

    Public Function RemoveAppender (
    	name As String
    ) As IAppender

    public:
    virtual IAppender^ RemoveAppender(
    	String^ name
    ) sealed

    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

AppenderAttachedImpl Class
RemoveAppender Overload
log4net.Util Namespace