Aracılığıyla paylaş


FtpClientConnection.Close Yöntemi

ftp bağlantısını kapatır.

Ad Alanı:  Microsoft.SqlServer.Dts.Runtime
Derleme:  Microsoft.SqlServer.ManagedDTS (Microsoft.SqlServer.ManagedDTS içinde.dll)

Sözdizimi

'Bildirim
Public Sub Close
'Kullanım
Dim instance As FtpClientConnection

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

Örnekler

Aşağıdaki kod örneği denetler FtpClientConnection olan bağlantı.Bağlantıyı kullanarak bu nedenle kapatılmışsa, 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