Metoda FtpClientConnection.Close
Zamyka połączenie FTP.
Przestrzeń nazw: Microsoft.SqlServer.Dts.Runtime
Zestaw: Microsoft.SqlServer.ManagedDTS (w Microsoft.SqlServer.ManagedDTS.dll)
Składnia
'Deklaracja
Public Sub Close
'Użycie
Dim instance As FtpClientConnection
instance.Close()
public void Close()
public:
void Close()
member Close : unit -> unit
public function Close()
Przykłady
Następujący kod przykładzie sprawdza, czy FtpClientConnection jest połączenie.Jeśli tak, połączenie jest zamykane za pomocą 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