SftpClient EndUploadFile Method SSH .NET Client Library Documentation
Ends an asynchronous uploading the steam into remote file.

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

public void EndUploadFile(
	IAsyncResult asyncResult
)

Parameters

asyncResult
Type: OnlineSystem IAsyncResult
The pending asynchronous SFTP request.
Exceptions

ExceptionCondition
OnlineSystem ArgumentExceptionEither the IAsyncResult object did not come from the corresponding async method on this type, or EndExecute was called multiple times with the same IAsyncResult.
OnlineSystem ArgumentExceptionThe IAsyncResult object (asyncResult) did not come from the corresponding async method on this type.

-or-

EndExecute was called multiple times with the same IAsyncResult.
See Also