Click or drag to resize

ScpClientDownload(String, Stream, Boolean) Method

Downloads the specified file from the remote host to the stream.

Namespace: Crestron.SimplSharp.Ssh
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public void Download(
	string filename,
	Stream destination,
	bool noQuotes
)

Parameters

filename  String
Remote host file name.
destination  Stream
The stream where to download remote file.
noQuotes  Boolean
Use no quotes in SCP request
Exceptions
ExceptionCondition
ArgumentExceptionfilename is null or contains whitespace characters.
ArgumentNullExceptiondestination is null.
Remarks
Method calls made by this method to destination, may under certain conditions result in exceptions thrown by the stream.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also