Sftp.GetStream Method
Namespace: Rebex.Net
Assembly: Rebex.Sftp.dll (version 7.0.9448)
GetStream(String, FileMode)
Returns a Stream for reading and writing data from the remote file.
Declaration
public Stream GetStream(string remotePath, FileMode mode)
Parameters
| Type | Name | Description |
|---|---|---|
| String | remotePath | The path of the remote file. |
| FileMode | mode | How to open the remote file. |
Returns
| Type | Description |
|---|---|
| Stream | A Stream for reading and writing data from the remote file |
GetStream(String, FileMode, FileAccess)
Returns a Stream for reading data from the remote file.
Declaration
public Stream GetStream(string remotePath, FileMode mode, FileAccess access)
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. |
Returns
| Type | Description |
|---|---|
| Stream | A Stream for reading data from the remote file |