FtpClientConnection.Close Methode

Definition

Schließt die FTP-Verbindung.

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

Beispiele

Im folgenden Codebeispiel wird überprüft, ob es sich um eine FtpClientConnection Verbindung handelt. Wenn dies der Grund ist, wird die Verbindung mit 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  

Gilt für: