CloudBlob.releaseLease Method

Definition

Overloads

releaseLease(final AccessCondition accessCondition)

Releases the lease on the blob.

releaseLease(final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)

Releases the lease on the blob using the specified request options and operation context.

releaseLease(final AccessCondition accessCondition)

Releases the lease on the blob.

public final void releaseLease(final AccessCondition accessCondition)
Parameters
accessCondition
final AccessCondition

An AccessCondition object that represents the access conditions for the blob. The LeaseID is required to be set on the AccessCondition.

Returns
final void
Exceptions
StorageException

If a storage service error occurred.

releaseLease(final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)

Releases the lease on the blob using the specified request options and operation context.

public final void releaseLease(final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext)
Parameters
accessCondition
final AccessCondition

An AccessCondition object that represents the access conditions for the blob.The LeaseID is required to be set on the AccessCondition.

options
BlobRequestOptions

A BlobRequestOptions object that specifies any additional options for the request. Specifying null will use the default request options from the associated service client ( CloudBlobClient).

opContext
OperationContext

An OperationContext object that represents the context for the current operation. This object is used to track requests to the storage service, and to provide additional runtime information about the operation.

Returns
final void
Exceptions
StorageException

If a storage service error occurred.

Applies to