共用方式為


FtpClientConnection.Close 方法

Closes the FTP connection.

命名空間:  Microsoft.SqlServer.Dts.Runtime
組件:  Microsoft.SqlServer.ManagedDTS (在 Microsoft.SqlServer.ManagedDTS.dll 中)

語法

'宣告
Public Sub Close
'用途
Dim instance As FtpClientConnection

instance.Close()
public void Close()
public:
void Close()
member Close : unit -> unit
public function Close()

範例

The following code example checks to see if the FtpClientConnection is connection. If so, the connection is closed using 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

請參閱

參考

FtpClientConnection 類別

Microsoft.SqlServer.Dts.Runtime 命名空間