Share via


FtpClientConnection.Close Método

Definición

Cierra la conexión FTP.

public:
 void Close();
public void Close ();
member this.Close : unit -> unit
Public Sub Close ()

Ejemplos

En el ejemplo de código siguiente se comprueba si la FtpClientConnection conexión es . Si es así, la conexión se cierra mediante 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  

Se aplica a