LibraryClient.Append(String, Stream, Nullable<Int64>, CancellationToken) 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 Azure.Response Append (string libraryName, System.IO.Stream content, long? blobConditionAppendPosition = default, System.Threading.CancellationToken cancellationToken = default);
abstract member Append : string * System.IO.Stream * Nullable<int64> * System.Threading.CancellationToken -> Azure.Response
override this.Append : string * System.IO.Stream * Nullable<int64> * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function Append (libraryName As String, content As Stream, Optional blobConditionAppendPosition As Nullable(Of Long) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As 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

Response

Applies to