Cloud​Blob​Container.​Break​Lease​Async Method

Definition

Overloads

Break​Lease​Async(​Nullable<​Time​Span>)

Initiates an asynchronous operation that breaks the current lease on this container.

Break​Lease​Async(​Nullable<​Time​Span>, ​Cancellation​Token)

Initiates an asynchronous operation that breaks the current lease on this container.

Break​Lease​Async(​Nullable<​Time​Span>, ​Access​Condition, ​Blob​Request​Options, ​Operation​Context)

Initiates an asynchronous operation that breaks the current lease on this container.

Break​Lease​Async(​Nullable<​Time​Span>, ​Access​Condition, ​Blob​Request​Options, ​Operation​Context, ​Cancellation​Token)

Initiates an asynchronous operation that breaks the current lease on this container.

BreakLeaseAsync(Nullable<TimeSpan>)

Initiates an asynchronous operation that breaks the current lease on this container.

[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<TimeSpan> BreakLeaseAsync (Nullable<TimeSpan> breakPeriod);
Parameters
breakPeriod
Nullable<TimeSpan>

A TimeSpan representing the amount of time to allow the lease to remain, which will be rounded down to seconds. If null, the break period is the remainder of the current lease, or zero for infinite leases.

Returns

A Task<TResult> object that represents the asynchronous operation.

Attributes

BreakLeaseAsync(Nullable<TimeSpan>, CancellationToken)

Initiates an asynchronous operation that breaks the current lease on this container.

[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<TimeSpan> BreakLeaseAsync (Nullable<TimeSpan> breakPeriod, System.Threading.CancellationToken cancellationToken);
Parameters
breakPeriod
Nullable<TimeSpan>

A TimeSpan representing the amount of time to allow the lease to remain, which will be rounded down to seconds. If null, the break period is the remainder of the current lease, or zero for infinite leases.

cancellationToken
CancellationToken

A CancellationToken to observe while waiting for a task to complete.

Returns

A Task<TResult> object that represents the asynchronous operation.

Attributes

BreakLeaseAsync(Nullable<TimeSpan>, AccessCondition, BlobRequestOptions, OperationContext)

Initiates an asynchronous operation that breaks the current lease on this container.

[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<TimeSpan> BreakLeaseAsync (Nullable<TimeSpan> breakPeriod, Microsoft.WindowsAzure.Storage.AccessCondition accessCondition, Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions options, Microsoft.WindowsAzure.Storage.OperationContext operationContext);
Parameters
breakPeriod
Nullable<TimeSpan>

A TimeSpan representing the amount of time to allow the lease to remain, which will be rounded down to seconds. If null, the break period is the remainder of the current lease, or zero for infinite leases.

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.

Returns

A Task<TResult> object that represents the asynchronous operation.

Attributes

BreakLeaseAsync(Nullable<TimeSpan>, AccessCondition, BlobRequestOptions, OperationContext, CancellationToken)

Initiates an asynchronous operation that breaks the current lease on this container.

[Microsoft.WindowsAzure.Storage.DoesServiceRequest]
public virtual System.Threading.Tasks.Task<TimeSpan> BreakLeaseAsync (Nullable<TimeSpan> breakPeriod, Microsoft.WindowsAzure.Storage.AccessCondition accessCondition, Microsoft.WindowsAzure.Storage.Blob.BlobRequestOptions options, Microsoft.WindowsAzure.Storage.OperationContext operationContext, System.Threading.CancellationToken cancellationToken);
Parameters
breakPeriod
Nullable<TimeSpan>

A TimeSpan representing the amount of time to allow the lease to remain, which will be rounded down to seconds. If null, the break period is the remainder of the current lease, or zero for infinite leases.

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.

cancellationToken
CancellationToken

A CancellationToken to observe while waiting for a task to complete.

Returns

A Task<TResult> object that represents the asynchronous operation.

Attributes