Begins asynchronous GetUploadStream operation. Returns a Stream for writing data to the remote file.

Namespace:  Rebex.Net
Assembly:  Rebex.Ftp (in Rebex.Ftp.dll)

Syntax

Visual Basic
Public Function GetUploadStreamAsync ( _
	remotePath As String, _
	origin As SeekOrigin, _
	offset As Long, _
	state As Object _
) As Task(Of Stream)
C#
public Task<Stream> GetUploadStreamAsync(
	string remotePath,
	SeekOrigin origin,
	long offset,
	Object state
)

Parameters

remotePath
Type: System..::..String
The path of the remote file.
origin
Type: System.IO..::..SeekOrigin
Position indicator that is used to obtain new position within the stream.
offset
Type: System..::..Int64
A byte offset relative to the origin parameter.
state
Type: System..::..Object
An optional user-provided object that identifies this particular asynchronous operation.

Return Value

A Stream for writing data to the remote file.

Implements

IFtp..::..GetUploadStreamAsync(String, SeekOrigin, Int64, Object)

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.

Version Information

.NET

Supported in: .NET 6.0, 5.0; .NET Framework 4.8, 4.7.x, 4.6.x, 4.5.x, 4.0

.NET Standard 2.0

Supported in: .NET Core 3.1; .NET Core 2.1; Xamarin.Android 10.1 (or higher); Xamarin.iOS 13.10 (or higher)

See Also