Click or drag to resize

ScpClientDownload(String, Stream) 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
)

Parameters

filename  String
Remote host file name.
destination  Stream
The stream where to download remote file.
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