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