'Declaration Public Overloads Sub Connect( _ ByVal hostName As String, _ ByVal port As Integer, _ ByVal authenticationMethod As AuthenticationMethod, _ ByVal verificationFlags As VerificationFlags, _ ByVal clientCertificate As Certificate _ )
'Usage Dim instance As FtpClient Dim hostName As String Dim port As Integer Dim authenticationMethod As AuthenticationMethod Dim verificationFlags As VerificationFlags Dim clientCertificate As Certificate instance.Connect(hostName, port, authenticationMethod, verificationFlags, clientCertificate)
public void Connect( string hostName, int port, AuthenticationMethod authenticationMethod, VerificationFlags verificationFlags, Certificate clientCertificate )
Parameters
- hostName
- The hostname of the FTP server to connect to. An IP address can also be used.
- port
- The port of the FTP server to which to connect to. If 0 is specified for the port, 21 will be used.
- authenticationMethod
- The authentication method used to connect to the FTP server.
- verificationFlags
- The verification flags used to verify the FTP server's certificate.
- clientCertificate
- The FTP client's certificate.