FtpClientConnection.Close Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Closes the FTP connection.
public:
void Close();
public void Close ();
member this.Close : unit -> unit
Public Sub Close ()
Examples
The following code example checks to see if the FtpClientConnection is connection. If so, the connection is closed using Close.
// Close the connection to the FTP Server, if it is connected.
if (ftpClientConnection != null)
ftpClientConnection.Close();
' Close the connection to the FTP Server, if it is connected.
If Not ftpClientConnection Is Nothing Then
ftpClientConnection.Close()
End If