言語

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  

適用対象