Sftp.GetStreamAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Sftp.dll (version 7.0.9083)
GetStreamAsync(String, FileMode, FileAccess, Object)
Begins asynchronous GetStream operation. Returns a Stream for reading data from the remote file.
Declaration
public Task<Stream> GetStreamAsync(string remotePath, FileMode mode, FileAccess access, object state = null)
Parameters
Type | Name | Description |
---|---|---|
String | remotePath | The path of the remote file. |
FileMode | mode | How to open the remote file. |
FileAccess | access | Which operations can be performed on the opened stream. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<Stream> | A Stream for reading data from the remote file |