SftpClientBeginDownloadFile(String, Stream, AsyncCallback, Object, ActionUInt64) Method |
Begins an asynchronous file downloading into the stream.
Namespace: Crestron.SimplSharp.SshAssembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntaxpublic IAsyncResult BeginDownloadFile(
string path,
Stream output,
AsyncCallback asyncCallback,
Object state,
Action<ulong> downloadCallback
)
Parameters
- path String
- The path.
- output Stream
- The output.
- asyncCallback AsyncCallback
- The method to be called when the asynchronous write operation is completed.
- state Object
- A user-provided object that distinguishes this particular asynchronous write request from other requests.
- downloadCallback ActionUInt64
- The download callback.
Return Value
IAsyncResult
An
IAsyncResult that references the asynchronous operation.
Exceptions
Remarks
Method calls made by this method to output, 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