Поделиться через


FtpClientConnection.Close Метод

Определение

Закрывает FTP-соединение.

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

Примеры

В следующем примере кода проверяется, установлено ли FtpClientConnection подключение. В этом случае подключение закрывается с помощью 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  

Применяется к