Differences

This shows you the differences between the selected revisions of the page.

2020-12-04 2021-01-20
consistency and formatting (martin) cancelling is not supported either (martin)
Line 27: Line 27:
==== Return Value ==== ==== Return Value ====
-''[[https://docs.microsoft.com/en-us/dotnet/api/system.io.stream|System.IO.Stream]]'' implementation that can be used to read the remote file contents. It implements the ''[[https://docs.microsoft.com/en-us/dotnet/api/system.io.stream.read|Read]]'' and ''[[https://docs.microsoft.com/en-us/dotnet/api/system.io.stream.dispose|Dispose]]'' methods only, and other methods derived from these two, like ''[[https://docs.microsoft.com/en-us/dotnet/api/system.io.stream.close|Close]]'' and ''[[https://docs.microsoft.com/en-us/dotnet/api/system.io.stream.copyto|CopyTo]]''. Seeking is not supported.+''[[https://docs.microsoft.com/en-us/dotnet/api/system.io.stream|System.IO.Stream]]'' implementation that can be used to read the remote file contents. It implements the ''[[https://docs.microsoft.com/en-us/dotnet/api/system.io.stream.read|Read]]'' and ''[[https://docs.microsoft.com/en-us/dotnet/api/system.io.stream.dispose|Dispose]]'' methods only, and other methods derived from these two, like ''[[https://docs.microsoft.com/en-us/dotnet/api/system.io.stream.close|Close]]'' and ''[[https://docs.microsoft.com/en-us/dotnet/api/system.io.stream.copyto|CopyTo]]''. Seeking and cancelling the transfer is not supported. Calling the ''Dispose'' (or the ''Close'') will finish downloading the file.
===== Remarks ===== ===== Remarks =====
Event ''[[library_session_filetransferred|Session.FileTransferred]]'' is raised for the download. Also raises [[library_session_filetransferprogress|''Session.FileTransferProgress'']] throughout the transfer. Event ''[[library_session_filetransferred|Session.FileTransferred]]'' is raised for the download. Also raises [[library_session_filetransferprogress|''Session.FileTransferProgress'']] throughout the transfer.

Last modified: by martin