Xceed .NET Libraries Documentation
Xceed.Ftp Assembly / Xceed.Ftp Namespace / FtpClient Class / Connect Method / Connect(IPEndPoint,AuthenticationMethod,VerificationFlags,Certificate) Method
An System.Net.IPEndPoint representing the IP address and port of the FTP server to connect to. If 0 is specified for the port, 21 will be used.
The authentication method used to connect to the FTP server.
The verification flags used to verify the FTP server's certificate.
The FTP client's certificate.


In This Topic
    Connect(IPEndPoint,AuthenticationMethod,VerificationFlags,Certificate) Method
    In This Topic
    Connects the FTP client to a secure FTP server using the specified hostname and port. Note: This method is not available in Xceed FTP for .NET Compact Framework because this product does not support Secure FTP.
    Syntax
    'Declaration
     
    Public Overloads Sub Connect( _
       ByVal serverAddress As IPEndPoint, _
       ByVal authenticationMethod As AuthenticationMethod, _
       ByVal verificationFlags As VerificationFlags, _
       ByVal clientCertificate As Certificate _
    ) 
    'Usage
     
    Dim instance As FtpClient
    Dim serverAddress As IPEndPoint
    Dim authenticationMethod As AuthenticationMethod
    Dim verificationFlags As VerificationFlags
    Dim clientCertificate As Certificate
     
    instance.Connect(serverAddress, authenticationMethod, verificationFlags, clientCertificate)

    Parameters

    serverAddress
    An System.Net.IPEndPoint representing the IP address and port of the FTP server 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.
    Remarks
    The PBSZ and PROT P commands are always when connecting to a server using implicit SSL/TLS to ensure that the DataChannel is always encrypted.
    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