Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

Sftp.GetStreamAsync Method

Namespace: Rebex.Net
Assembly: Rebex.Sftp.dll (version 7.0.9147)

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

In This Article
  • GetStreamAsync(String, FileMode, FileAccess, Object)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies