System.IO.Stream interface to a remote file contents.
This feature is available only in the latest beta release.
For an efficient download to a physical local file, use
Session.GetFileToDirectory and similar methods instead.
|string remoteFilePath||Full path to the remote file to retrieve.|
|TransferOptions options||Transfer options. Defaults to
System.IO.Stream implementation that can be used to read the remote file contents. It implements the
Dispose methods only, and other methods derived from these two, like
CopyTo. Seeking and cancelling the transfer is not supported. Calling the
Dispose (or the
Close) will finish downloading the file.
You must dispose the returned stream before trying to use the
Session instance again.