Click or drag to resize

ScpClient(String, Int32, String, String) Constructor

Initializes a new instance of the SftpClient class.

Namespace: Crestron.SimplSharp.Ssh
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public ScpClient(
	string host,
	int port,
	string username,
	string password
)

Parameters

host  String
Connection host.
port  Int32
Connection port.
username  String
Authentication username.
password  String
Authentication password.
Exceptions
ExceptionCondition
ArgumentNullExceptionpassword is null.
ArgumentExceptionhost is invalid, or username is null or contains whitespace characters.
ArgumentOutOfRangeExceptionport is not within MinPort and MaxPort.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also