The port on the server to which to connect the control-channel.
Namespace: EnterpriseDT.Net.FtpAssembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 9.4.0.40
Syntax
Remarks
This property may only be set if not currently connected.
Examples
The following example illustrates an SFTP client
connecting to a server:
Copy | |
---|---|
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(); |