UdpAppender RemotePort Property | Apache log4net™ SDK Documentation

Gets or sets the TCP port number of the remote host or multicast group to which the underlying UdpClient should sent the logging event.

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

C#
VB
C++
F#
Copy

    public int RemotePort { get; set; }

    Public Property RemotePort As Integer
    	Get
    	Set

    public:
    property int RemotePort {
    	int get ();
    	void set (int value);
    }

    member RemotePort : int with get, set

#### Property Value

Type: Int32
An integer value in the range MinPort to MaxPort indicating the TCP port number of the remote host or multicast group to which the logging event will be sent.
Exceptions

Exception | Condition
--- | ---
ArgumentOutOfRangeException | The value specified is less than MinPort or greater than MaxPort.

Remarks

The underlying UdpClient will send messages to this TCP port number on the remote host or multicast group.
See Also

#### Reference

UdpAppender Class
log4net.Appender Namespace