log4net SDK Reference

UdpAppender.RemotePort Property

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

[Visual Basic]
Public Property RemotePort As Integer
[C#]
public int RemotePort {get; set;}

Property Value

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.

Remarks

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

Exceptions

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

See Also

UdpAppender Class | log4net.Appender Namespace