CloudAppendBlob.BeginAppendBlock Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
BeginAppendBlock(Stream, AsyncCallback, Object) |
Begins an asynchronous operation to commit a new block of data to the end of the blob. |
BeginAppendBlock(Stream, Checksum, AsyncCallback, Object) |
Begins an asynchronous operation to commit a new block of data to the end of the blob. |
BeginAppendBlock(Stream, Checksum, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object) |
Begins an asynchronous operation to commit a new block of data to the end of the blob. |
BeginAppendBlock(Uri, Int64, Int64, Checksum, AccessCondition, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object) |
Commits a new block of data to the end of the blob. |
BeginAppendBlock(Stream, AsyncCallback, Object)
Begins an asynchronous operation to commit a new block of data to the end of the blob.
[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual Microsoft.Azure.Storage.ICancellableAsyncResult BeginAppendBlock (System.IO.Stream blockData, AsyncCallback callback, object state);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member BeginAppendBlock : System.IO.Stream * AsyncCallback * obj -> Microsoft.Azure.Storage.ICancellableAsyncResult
override this.BeginAppendBlock : System.IO.Stream * AsyncCallback * obj -> Microsoft.Azure.Storage.ICancellableAsyncResult
Public Overridable Function BeginAppendBlock (blockData As Stream, callback As AsyncCallback, state As Object) As ICancellableAsyncResult
Parameters
- callback
- AsyncCallback
An AsyncCallback delegate that will receive notification when the asynchronous operation completes.
- state
- Object
A user-defined object that will be passed to the callback delegate.
Returns
An ICancellableAsyncResult that references the asynchronous operation.
- Attributes
Applies to
BeginAppendBlock(Stream, Checksum, AsyncCallback, Object)
Begins an asynchronous operation to commit a new block of data to the end of the blob.
[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual Microsoft.Azure.Storage.ICancellableAsyncResult BeginAppendBlock (System.IO.Stream blockData, Microsoft.Azure.Storage.Shared.Protocol.Checksum contentChecksum, AsyncCallback callback, object state);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member BeginAppendBlock : System.IO.Stream * Microsoft.Azure.Storage.Shared.Protocol.Checksum * AsyncCallback * obj -> Microsoft.Azure.Storage.ICancellableAsyncResult
override this.BeginAppendBlock : System.IO.Stream * Microsoft.Azure.Storage.Shared.Protocol.Checksum * AsyncCallback * obj -> Microsoft.Azure.Storage.ICancellableAsyncResult
Public Overridable Function BeginAppendBlock (blockData As Stream, contentChecksum As Checksum, callback As AsyncCallback, state As Object) As ICancellableAsyncResult
Parameters
- contentChecksum
- Checksum
A hash value used to ensure transactional integrity. May be null
or Checksum.None
- callback
- AsyncCallback
An AsyncCallback delegate that will receive notification when the asynchronous operation completes.
- state
- Object
A user-defined object that will be passed to the callback delegate.
Returns
An ICancellableAsyncResult that references the asynchronous operation.
- 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
BeginAppendBlock(Stream, Checksum, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object)
Begins an asynchronous operation to commit a new block of data to the end of the blob.
[Microsoft.Azure.Storage.DoesServiceRequest]
public virtual Microsoft.Azure.Storage.ICancellableAsyncResult BeginAppendBlock (System.IO.Stream blockData, Microsoft.Azure.Storage.Shared.Protocol.Checksum contentChecksum, Microsoft.Azure.Storage.AccessCondition accessCondition, Microsoft.Azure.Storage.Blob.BlobRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext, AsyncCallback callback, object state);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
abstract member BeginAppendBlock : System.IO.Stream * Microsoft.Azure.Storage.Shared.Protocol.Checksum * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext * AsyncCallback * obj -> Microsoft.Azure.Storage.ICancellableAsyncResult
override this.BeginAppendBlock : System.IO.Stream * Microsoft.Azure.Storage.Shared.Protocol.Checksum * Microsoft.Azure.Storage.AccessCondition * Microsoft.Azure.Storage.Blob.BlobRequestOptions * Microsoft.Azure.Storage.OperationContext * AsyncCallback * obj -> Microsoft.Azure.Storage.ICancellableAsyncResult
Public Overridable Function BeginAppendBlock (blockData As Stream, contentChecksum As Checksum, accessCondition As AccessCondition, options As BlobRequestOptions, operationContext As OperationContext, callback As AsyncCallback, state As Object) As ICancellableAsyncResult
Parameters
- contentChecksum
- Checksum
A 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.
- operationContext
- OperationContext
An OperationContext object that represents the context for the current operation.
- callback
- AsyncCallback
An AsyncCallback delegate that will receive notification when the asynchronous operation completes.
- state
- Object
A user-defined object that will be passed to the callback delegate.
Returns
An ICancellableAsyncResult that references the asynchronous operation.
- 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
BeginAppendBlock(Uri, Int64, Int64, Checksum, AccessCondition, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object)
Commits a new block of data to the end of the blob.
[Microsoft.Azure.Storage.DoesServiceRequest]
public Microsoft.Azure.Storage.ICancellableAsyncResult BeginAppendBlock (Uri sourceUri, long offset, long count, Microsoft.Azure.Storage.Shared.Protocol.Checksum sourceContentChecksum, Microsoft.Azure.Storage.AccessCondition sourceAccessCondition, Microsoft.Azure.Storage.AccessCondition destAccessCondition, Microsoft.Azure.Storage.Blob.BlobRequestOptions options, Microsoft.Azure.Storage.OperationContext operationContext, AsyncCallback callback, object state);
[<Microsoft.Azure.Storage.DoesServiceRequest>]
member this.BeginAppendBlock : 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 * AsyncCallback * obj -> Microsoft.Azure.Storage.ICancellableAsyncResult
Public Function BeginAppendBlock (sourceUri As Uri, offset As Long, count As Long, sourceContentChecksum As Checksum, sourceAccessCondition As AccessCondition, destAccessCondition As AccessCondition, options As BlobRequestOptions, operationContext As OperationContext, callback As AsyncCallback, state As Object) As ICancellableAsyncResult
Parameters
- 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
- 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.
- callback
- AsyncCallback
An AsyncCallback delegate that will receive notification when the asynchronous operation completes.
- state
- Object
A user-defined object that will be passed to the callback delegate.
Returns
An ICancellableAsyncResult that references the asynchronous operation.
- Attributes