Partager via


Méthode FtpClientConnection.Close

Closes the FTP connection.

Espace de noms :  Microsoft.SqlServer.Dts.Runtime
Assembly :  Microsoft.SqlServer.ManagedDTS (en Microsoft.SqlServer.ManagedDTS.dll)

Syntaxe

'Déclaration
Public Sub Close
'Utilisation
Dim instance As FtpClientConnection

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

Exemples

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

Voir aussi

Référence

FtpClientConnection Classe

Espace de noms Microsoft.SqlServer.Dts.Runtime