CloudAppendBlob.AppendBlock Method

Definition

Overloads

AppendBlock(Uri, Int64, Int64, Checksum, AccessCondition, AccessCondition, BlobRequestOptions, OperationContext)

Commits a new block of data to the end of the blob.

AppendBlock(Stream, Checksum, AccessCondition, BlobRequestOptions, OperationContext)

Commits a new block of data to the end of the blob.

AppendBlock(Uri, Int64, Int64, Checksum, AccessCondition, AccessCondition, BlobRequestOptions, OperationContext)

Commits a new block of data to the end of the blob.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual long AppendBlock (Uri sourceUri, long offset, long count, Microsoft.Azure.Storage.Shared.Protocol.Checksum sourceContentChecksum, Microsoft.Azure.Storage.AccessCondition sourceAccessCondition = default, Microsoft.Azure.Storage.AccessCondition destAccessCondition = default, Microsoft.Azure.Storage.Blob.BlobRequestOptions options = default, Microsoft.Azure.Storage.OperationContext operationContext = default);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member AppendBlock : Uri * int64 * int64 * Microsoft.Azure.Storage.Shared.Protocol.Checksum * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> int64
override this.AppendBlock : Uri * int64 * int64 * Microsoft.Azure.Storage.Shared.Protocol.Checksum * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> int64
Public Overridable Function AppendBlock (sourceUri As Uri, offset As Long, count As Long, sourceContentChecksum As Checksum, Optional sourceAccessCondition As AccessCondition = Nothing, Optional destAccessCondition As AccessCondition = Nothing, Optional options As BlobRequestOptions = Nothing, Optional operationContext As OperationContext = Nothing) As Long

Parameters

sourceUri
Uri

A Uri specifying the absolute URI to the source blob.

offset
Int64

The byte offset in the source at which to begin retrieving content.

count
Int64

The number of bytes from the source to return, or null to return all bytes through the end of the blob.

sourceContentChecksum
Checksum

A hash value used to ensure transactional integrity. May be null or Checksum.None

sourceAccessCondition
AccessCondition

An AccessCondition object that represents the access conditions for the source blob. If null, no condition is used.

destAccessCondition
AccessCondition

An AccessCondition object that represents the access conditions for the destination blob. If null, no condition is used.

options
BlobRequestOptions

A BlobRequestOptions object that specifies additional options for the request. If null, default options are applied to the request.

operationContext
OperationContext

An OperationContext object that represents the context for the current operation.

Returns

The offset at which the block was appended.

Attributes

Applies to

AppendBlock(Stream, Checksum, AccessCondition, BlobRequestOptions, OperationContext)

Commits a new block of data to the end of the blob.

[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual long AppendBlock (System.IO.Stream blockData, Microsoft.Azure.Storage.Shared.Protocol.Checksum contentChecksum = default, Microsoft.Azure.Storage.AccessCondition accessCondition = default, Microsoft.Azure.Storage.Blob.BlobRequestOptions options = default, Microsoft.Azure.Storage.OperationContext operationContext = default);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member AppendBlock : System.IO.Stream * Microsoft.Azure.Storage.Shared.Protocol.Checksum * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> int64
override this.AppendBlock : System.IO.Stream * Microsoft.Azure.Storage.Shared.Protocol.Checksum * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext -> int64
Public Overridable Function AppendBlock (blockData As Stream, Optional contentChecksum As Checksum = Nothing, Optional accessCondition As AccessCondition = Nothing, Optional options As BlobRequestOptions = Nothing, Optional operationContext As OperationContext = Nothing) As Long

Parameters

blockData
Stream

A Stream object that provides the data for the block.

contentChecksum
Checksum

An optional hash value used to ensure transactional integrity. May be null or Checksum.None

accessCondition
AccessCondition

An AccessCondition object that represents the condition that must be met in order for the request to proceed. If null, no condition is used.

options
BlobRequestOptions

A BlobRequestOptions object that specifies additional options for the request. If null, default options are applied to the request.

operationContext
OperationContext

An OperationContext object that represents the context for the current operation.

Returns

The offset at which the block was appended.

Attributes

Remarks

Clients may send the content checksum headers for a given operation as a means to ensure transactional integrity over the wire. The contentChecksum parameter permits clients who already have access to a pre-computed checksum value for a given byte range to provide it. If the BlobRequestOptions.UseTransactionalMd5 or BlobRequestOptions.UseTransactionalCrc64 properties are set to true and the corresponding content parameter is set to null, then the client library will calculate the checksum value internally.

Applies to