Downloads remote file specified by the path into the stream.
Namespace: Renci.SshNetAssembly: Renci.SshNet (in Renci.SshNet.dll) Version: 0.1.0.0 (1.0.0.0)
Syntax
Parameters
- path
- Type:
System String
File to download.
- output
- Type:
System.IO Stream
Stream to write the file into.
- downloadCallback (Optional)
- Type:
System Action
UInt64
The download callback.
Exceptions
| Exception | Condition |
|---|---|
| output is null. | |
| path is null or contains whitespace characters. | |
| Renci.SshNet.Common SshConnectionException | Client is not connected. |
| Renci.SshNet.Common SftpPermissionDeniedException | Permission to perform the operation was denied by the remote host. -or- A SSH command was denied by the server. |
| Renci.SshNet.Common SshException | A SSH error where |
Remarks
See Also