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