FtpClient.Port Property

System.Net.FtpClient

Collapse image Expand Image Copy image CopyHover image
The port to connect to. If this value is set to 0 (Default) the port used will be determined by the type of SSL used or if no SSL is to be used it will automatically connect to port 21.

Namespace: System.Net.FtpClient
Assembly: System.Net.FtpClient (in System.Net.FtpClient.dll) Version: 1.0.5064.17461

Syntax

C#
public int Port { get; set; }
Visual Basic
Public Property Port As Integer
	Get
	Set
Visual C++
public:
virtual property int Port {
	int get () sealed;
	void set (int value) sealed;
}

Property Value

Type: Int32

Implements

IFtpClient..::..Port

See Also