AdlsClient.GetAppendStreamAsync(String, CancellationToken) Method

Definition

Asynchronous API that returns the stream to write data to a file in ADLS. The file is opened with exclusive access - any attempt to open the same file for append will fail while this stream is open.

Threading: The returned stream is not thread-safe.

public virtual System.Threading.Tasks.Task<Microsoft.Azure.DataLake.Store.AdlsOutputStream> GetAppendStreamAsync (string filename, System.Threading.CancellationToken cancelToken = default);
abstract member GetAppendStreamAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.DataLake.Store.AdlsOutputStream>
override this.GetAppendStreamAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.DataLake.Store.AdlsOutputStream>
Public Overridable Function GetAppendStreamAsync (filename As String, Optional cancelToken As CancellationToken = Nothing) As Task(Of AdlsOutputStream)

Parameters

filename
System.String

File name

cancelToken
System.Threading.CancellationToken

CancellationToken to cancel the request

Returns

System.Threading.Tasks.Task<AdlsOutputStream>

Output stream

Applies to