Xceed .NET Libraries Documentation
TestConnection Method


Xceed.Ftp Assembly > Xceed.Ftp Namespace > FtpConnection Class : TestConnection Method
Tests if a connection with the specified FTP server is possible before the FtpConnection instance is passed to FtpFile or FtpFolder objects.
Syntax
'Declaration
 
Public Sub TestConnection() 
'Usage
 
Dim instance As FtpConnection

 

instance.TestConnection()
public void TestConnection()
Remarks

If a connection with an FTP server is not possible, exceptions will be thrown when trying to access properties of the FtpFile and/or FtpFolder instances.

This method always creates a new connection. All connections an FtpConnection object may need to create are kept alive and only closed when the FtpConnection is disposed or garbaged-collected.

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