TelnetAppender Port Property | Apache log4net™ SDK Documentation

Gets or sets the TCP port number on which this TelnetAppender will listen for connections.

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

C#
VB
C++
F#
Copy

    public int Port { get; set; }

    Public Property Port As Integer
    	Get
    	Set

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

    member Port : int with get, set

#### Property Value

Type: Int32
An integer value in the range MinPort to MaxPort indicating the TCP port number on which this TelnetAppender will listen for connections.
Exceptions

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

Remarks

The default value is 23 (the telnet port).

See Also

#### Reference

TelnetAppender Class
log4net.Appender Namespace