UdpAppender OnClose Method | Apache log4net™ SDK Documentation

Closes the UDP connection and releases all resources associated with this UdpAppender instance.

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

C#
VB
C++
F#
Copy

    protected override void OnClose()

    Protected Overrides Sub OnClose

    protected:
    virtual void OnClose() override

    abstract OnClose : unit -> unit
    override OnClose : unit -> unit

Remarks

Disables the underlying UdpClient and releases all managed and unmanaged resources associated with the UdpAppender.

See Also

#### Reference

UdpAppender Class
log4net.Appender Namespace