SftpClient DownloadFile Method SSH .NET Client Library Documentation
Downloads remote file specified by the path into the stream.

Namespace: Renci.SshNet
Assembly: Renci.SshNet (in Renci.SshNet.dll) Version: 0.1.0.0 (1.0.0.0)
Syntax

public void DownloadFile(
	string path,
	Stream output,
	Action<ulong> downloadCallback = null
)

Parameters

path
Type: OnlineSystem String
File to download.
output
Type: OnlineSystem.IO Stream
Stream to write the file into.
downloadCallback (Optional)
Type: OnlineSystem Action OnlineUInt64 
The download callback.
Exceptions

Remarks

Method calls made by this method to output, may under certain conditions result in exceptions thrown by the stream.
See Also