Constructs an FTPClient instance and connects to the FTP server.

Namespace: EnterpriseDT.Net.Ftp
Assembly: edtFTPnet (in edtFTPnet.dll) Version: 2.2.3.0

Syntax

C#
[ObsoleteAttribute("This constructor is obsolete; use the default constructor and properties instead")]
public FTPClient(
	string remoteHost,
	int controlPort,
	int timeout
)
Visual Basic
<ObsoleteAttribute("This constructor is obsolete; use the default constructor and properties instead")> _
Public Sub New ( _
	remoteHost As String, _
	controlPort As Integer, _
	timeout As Integer _
)
Visual C++
[ObsoleteAttribute(L"This constructor is obsolete; use the default constructor and properties instead")]
public:
FTPClient(
	String^ remoteHost, 
	int controlPort, 
	int timeout
)

Parameters

remoteHost
Type: System..::..String
The domain-name or IP address of the FTP server.
controlPort
Type: System..::..Int32
The port for control stream (-1 for default port).
timeout
Type: System..::..Int32
The length of the timeout in milliseconds (pass in 0 for no timeout)

See Also