Xceed .NET Libraries Documentation
Xceed.Ftp Assembly / Xceed.Ftp Namespace / FtpClient Class / ChangeUser Method / ChangeUser() Method


In This Topic
    ChangeUser() Method
    In This Topic
    Changes the currently logged-in user to the anonymous user without disconnecting from the FTP server.
    Syntax
    'Declaration
     
    Public Overloads Sub ChangeUser() 
    'Usage
     
    Dim instance As FtpClient
     
    instance.ChangeUser()
    public void ChangeUser()
    Exceptions
    ExceptionDescription
    Cannot perform the requested operation because the FTP client is in an invalid state.
    An error reply was returned by the FTP server.
    An I/O error has occurred.
    A fatal FTP-specific error has occurred..
    Remarks

    The ChangerUser method will send the REIN, USER and PASS commands to the FTP server.

    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