Ftp.GetUploadStreamAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Ftp.dll (version 7.0.9083)
GetUploadStreamAsync(String, SeekOrigin, Int64, Object)
Begins asynchronous GetUploadStream operation. Returns a Stream for writing data to the remote file.
Declaration
public Task<Stream> GetUploadStreamAsync(string remotePath, SeekOrigin origin, long offset, object state = null)
Parameters
Type | Name | Description |
---|---|---|
String | remotePath | The path of the remote file. |
SeekOrigin | origin | Position indicator that is used to obtain new position within the stream. |
Int64 | offset | A byte offset relative to the origin parameter. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<Stream> | A Stream for writing data to the remote file. |
Implements
Remarks
Because the FTP protocol does not support processing multiple commands or transfers at the same time, the stream has to be closed before any other FTP operation can be used.