Sdílet prostřednictvím


AppendBlobClient.AppendBlockFromUriAsync Method

Definition

The AppendBlockFromUriAsync(Uri, AppendBlobAppendBlockFromUriOptions, CancellationToken) operation commits a new block of data, represented by the sourceUri, to the end of the existing append blob. The AppendBlockFromUriAsync(Uri, AppendBlobAppendBlockFromUriOptions, CancellationToken) operation is only permitted if the blob was created as an append blob.

For more information, see Append Block From URL.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Blobs.Models.BlobAppendInfo>> AppendBlockFromUriAsync (Uri sourceUri, Azure.Storage.Blobs.Models.AppendBlobAppendBlockFromUriOptions options = default, System.Threading.CancellationToken cancellationToken = default);
abstract member AppendBlockFromUriAsync : Uri * Azure.Storage.Blobs.Models.AppendBlobAppendBlockFromUriOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Blobs.Models.BlobAppendInfo>>
override this.AppendBlockFromUriAsync : Uri * Azure.Storage.Blobs.Models.AppendBlobAppendBlockFromUriOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Storage.Blobs.Models.BlobAppendInfo>>
Public Overridable Function AppendBlockFromUriAsync (sourceUri As Uri, Optional options As AppendBlobAppendBlockFromUriOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of BlobAppendInfo))

Parameters

sourceUri
Uri

Specifies the Uri of the source blob. The value may be a Uri of up to 2 KB in length that specifies a blob. The source blob must either be public or must be authenticated via a shared access signature. If the source blob is public, no authentication is required to perform the operation.

cancellationToken
CancellationToken

Optional CancellationToken to propagate notifications that the operation should be cancelled.

Returns

A Response<T> describing the state of the updated append blob.

Remarks

A RequestFailedException will be thrown if a failure occurs.

Applies to