'Declaration Public Overloads Sub ChangeUser( _ ByVal userName As String, _ ByVal password As String _ )
Parameters
- userName
- The username with which to relogin into the FTP server.
- password
- The password with which to relogin into the FTP server.
'Declaration Public Overloads Sub ChangeUser( _ ByVal userName As String, _ ByVal password As String _ )
Exception | Description |
---|---|
FtpInvalidStateException | Cannot perform the requested operation because the FTP client is in an invalid state. |
FtpReplyException | An error reply was returned by the FTP server. |
FtpIOException | An I/O error has occurred. |
FtpInternalException | A fatal FTP-specific error has occurred.. |
The ChangeUser method will send the REIN, USER and PASS commands to the FTP server.
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