Share via


cloud_block_blob::upload_block_async Method

Intitiates an asynchronous operation to upload a single block.

pplx::task<void> upload_block_async(
   const utility::string_t& block_id,
   concurrency::streams::istream block_data,
   const utility::string_t& content_md5
) const;

WASTORAGE_API pplx::task<void> upload_block_async(
   const utility::string_t& block_id,
   concurrency::streams::istream block_data,
   const utility::string_t& content_md5,
   const access_condition& condition,
   const blob_request_options& options,
   operation_context context
) const;

Parameters

  • block_id
    A Base64-encoded block ID that identifies the block.
  • block_data
    A stream that provides the data for the block.
  • content_md5
    An optional hash value that will be used to set the Content-MD5 property on the blob. May be an empty string.
  • condition
    An azure::storage::access_condition object that represents the access condition for the operation.
  • options
    A azure::storage::blob_request_options object that specifies additional options for the request.
  • context
    An azure::storage::operation_context object that represents the context for the current operation.

Return Value

A pplx::task object that represents the current operation.

Requirements

Header: blob.h

Namespace: azure::storage

See Also

Reference

cloud_block_blob Class