Releasing a connection |
To disconnect from an FTP server, invoke the Disconnect method. You should always disconnect from the FTP server when ending your session.
Example
[C#]
// disconnect from FTP server
myFtp.Disconnect();
[Visual Basic]
' disconnect from FTP server
myFtp.Disconnect()