語言

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  

適用於