Share via


FtpClientConnection.Close Méthode

Définition

Ferme la connexion FTP.

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

Exemples

L’exemple de code suivant vérifie si la connexion est établie FtpClientConnection . Si tel est le cas, la connexion est fermée à l’aide Closede .

// 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  

S’applique à