LibraryClient.AppendAsync Method

Definition

Append the content to the library resource created using the create operation. The maximum content size is 4MiB. Content larger than 4MiB must be appended in 4MiB chunks.

public virtual System.Threading.Tasks.Task<Azure.Response> AppendAsync (string libraryName, System.IO.Stream content, long? blobConditionAppendPosition = default, System.Threading.CancellationToken cancellationToken = default);
abstract member AppendAsync : string * System.IO.Stream * Nullable<int64> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.AppendAsync : string * System.IO.Stream * Nullable<int64> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function AppendAsync (libraryName As String, content As Stream, Optional blobConditionAppendPosition As Nullable(Of Long) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameters

libraryName
String

file name to upload. Minimum length of the filename should be 1 excluding the extension length.

content
Stream

Library file chunk.

blobConditionAppendPosition
Nullable<Int64>

Set this header to a byte offset at which the block is expected to be appended. The request succeeds only if the current offset matches this value. Otherwise, the request fails with the AppendPositionConditionNotMet error (HTTP status code 412 – Precondition Failed).

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to