Share via


cloud_blob_container::change_lease Method

Changes the lease ID for a lease on the container.

utility::string_t change_lease(
   const utility::string_t& proposed_lease_id
) const;

utility::string_t change_lease(
   const utility::string_t& proposed_lease_id,
   const access_condition& condition,
   const blob_request_options& options,
   operation_context context
) const;

Parameters

  • proposed_lease_id
    A string containing the proposed lease ID for the lease. May not be empty.
  • condition
    An azure::storage::access_condition object that represents the access condition for the operation, including a required lease ID.
  • 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

The new lease ID.

Requirements

Header: blob.h

Namespace: azure::storage

See Also

Reference

cloud_blob_container Class