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  

適用対象