语言

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  

适用于