Xceed .NET Libraries Documentation
CloseConnections Method


Xceed.Ftp Assembly > Xceed.Ftp Namespace > FtpConnection Class : CloseConnections Method
Close any pending connections.
Syntax
'Declaration
 
Public Sub CloseConnections() 
'Usage
 
Dim instance As FtpConnection
 
instance.CloseConnections()
public void CloseConnections()
Remarks

The FtpConnection will create connections with the FTP server transparently and as necessary until it is disposed of or garbage-collected. To prevent connections with an FTP server from being kept alive, the CloseConnections method can be called. The CloseConnections method will close any connections that are not being used, however the FtpConnection instance will remain usable.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

FtpConnection Class
FtpConnection Members