FtpClientConnection.Close メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
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