ExFTPConnectionServerPort Property |
The port on the server to which to connect the control-channel.
Namespace:
EnterpriseDT.Net.Ftp
Assembly:
edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.3.0.0
Syntaxpublic override int ServerPort { get; set; }
Public Overrides Property ServerPort As Integer
Get
Set
public:
virtual property int ServerPort {
int get () override;
void set (int value) override;
}
abstract ServerPort : int with get, set
override ServerPort : int with get, set
Property Value
Type:
Int32
RemarksThis property may only be set if not currently connected.
ExamplesThe following example illustrates an SFTP client
connecting to a server:
ExFTPConnection ftp = new ExFTPConnection();
ftp.Protocol = FileTransferProtocol.FTP;
ftp.ServerAddress = "my-server-name";
ftp.ServerPort = 21;
ftp.UserName = "my-username";
ftp.Password = "my-password";
ftp.Connect();
ftp.Close();
See Also