Partilhar via


FtpClientConnection.Close Método

Definição

Fecha a conexão de FTP.

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

Exemplos

O exemplo de código a seguir verifica se a FtpClientConnection conexão é. Nesse caso, a conexão será fechada usando 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  

Aplica-se a