Xceed .NET Libraries Documentation
FtpConnection Constructor(String,Int32,String,String,AuthenticationMethod,VerificationFlags,Certificate,DataChannelProtection,Boolean)


Xceed.Ftp Assembly > Xceed.Ftp Namespace > FtpConnection Class > FtpConnection Constructor : FtpConnection Constructor(String,Int32,String,String,AuthenticationMethod,VerificationFlags,Certificate,DataChannelProtection,Boolean)
The hostname of the FTP server to connect to. An IP address can also be used.
The port of the FTP server to which to connect to. If 0 is passed, 990 is used if implicitAuthentication is true; otherwise, 21 is used.
The username used to connect to the FTP server.
The password used to connect to the FTP server.
The authentication method to use when connecting to the FTP server.
The verification flags used to verify the FTP server's certificate.
The certificate used when connecting to the FTP server. Can be null.
The DataChannelProtection used during the communication. Ignored if implicitAuthentication is true.
If true, the SSL handshake occurs at the very beginning of the connection; otherwise, the AUTH command is sent after the Welcome message to initiate the SSL handshake.
Initializes a new instance of the FtpConnection class specifying the HostName and Port of the FTP server, various SSL parameters, as well as the UserName and Password used to connect. Note: This method is not available in Xceed FTP for .NET Compact Framework because this product does not support Secure FTP.
Syntax
'Declaration
 
Public Function New( _
   ByVal hostName As String, _
   ByVal port As Integer, _
   ByVal userName As String, _
   ByVal password As String, _
   ByVal authenticationMethod As AuthenticationMethod, _
   ByVal verificationFlags As VerificationFlags, _
   ByVal clientCertificate As Certificate, _
   ByVal dataChannelProtection As DataChannelProtection, _
   ByVal implicitAuthentication As Boolean _
)
'Usage
 
Dim hostName As String
Dim port As Integer
Dim userName As String
Dim password As String
Dim authenticationMethod As AuthenticationMethod
Dim verificationFlags As VerificationFlags
Dim clientCertificate As Certificate
Dim dataChannelProtection As DataChannelProtection
Dim implicitAuthentication As Boolean
 
Dim instance As New FtpConnection(hostName, port, userName, password, authenticationMethod, verificationFlags, clientCertificate, dataChannelProtection, implicitAuthentication)

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 passed, 990 is used if implicitAuthentication is true; otherwise, 21 is used.
userName
The username used to connect to the FTP server.
password
The password used to connect to the FTP server.
authenticationMethod
The authentication method to use when connecting to the FTP server.
verificationFlags
The verification flags used to verify the FTP server's certificate.
clientCertificate
The certificate used when connecting to the FTP server. Can be null.
dataChannelProtection
The DataChannelProtection used during the communication. Ignored if implicitAuthentication is true.
implicitAuthentication
If true, the SSL handshake occurs at the very beginning of the connection; otherwise, the AUTH command is sent after the Welcome message to initiate the SSL handshake.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

FtpConnection Class
FtpConnection Members
Overload List