SftpClient EndListDirectory Method SSH .NET Client Library Documentation
Ends an asynchronous operation of retrieving list of files in remote directory.

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

public IEnumerable<SftpFile> EndListDirectory(
	IAsyncResult asyncResult
)

Parameters

asyncResult
Type: OnlineSystem IAsyncResult
The pending asynchronous SFTP request.

Return Value

List of files
Exceptions

ExceptionCondition
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