FtpClient.Connect Method (Uri, Boolean)

System.Net.FtpClient

Collapse image Expand Image Copy image CopyHover image
Connects to the specified URI. If the path specified by the URI ends with a / then the working directory is changed to the path specified.

Namespace: System.Net.FtpClient
Assembly: System.Net.FtpClient (in System.Net.FtpClient.dll) Version: 1.0.5064.17461

Syntax

C#
public static FtpClient Connect(
	Uri uri,
	bool checkcertificate
)
Visual Basic
Public Shared Function Connect ( 
	uri As Uri,
	checkcertificate As Boolean
) As FtpClient
Visual C++
public:
static FtpClient^ Connect(
	Uri^ uri, 
	bool checkcertificate
)

Parameters

uri
Type: System..::..Uri
The URI to parse
checkcertificate
Type: System..::..Boolean
Indicates if a ssl certificate should be validated when using FTPS schemes

Return Value

Type: FtpClient
FtpClient object

See Also