Connects to the SCP host.

Namespace:  Rebex.Net
Assembly:  Rebex.Sftp (in Rebex.Sftp.dll)

Syntax

Visual Basic
Public Sub Connect ( _
	serverName As String, _
	serverPort As Integer _
)
C#
public void Connect(
	string serverName,
	int serverPort
)

Parameters

serverName
Type: System..::..String
The host address - either a hostname or a dotted string address.
serverPort
Type: System..::..Int32
The host port (e.g. 22).

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also