CloudBlobContainer.BeginChangeLease Method (String, AccessCondition, BlobRequestOptions, OperationContext, AsyncCallback, Object)
Updated: September 27, 2016
Begins an asynchronous operation to change the lease on this container.
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
public virtual ICancellableAsyncResult BeginChangeLease( string proposedLeaseId, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext, AsyncCallback callback, object state )
A string representing the proposed lease ID for the new lease. This cannot be null.
An AccessCondition object that represents the condition that must be met in order for the request to proceed, including a required lease ID.
A BlobRequestOptions object that specifies additional options for the request. If null, default options are applied to the request.
An OperationContext object that represents the context for the current operation.
An optional callback delegate that will receive notification when the asynchronous operation completes.
A user-defined object that will be passed to the callback delegate.
Return ValueType: Microsoft.WindowsAzure.Storage.ICancellableAsyncResult
An ICancellableAsyncResult that references the asynchronous operation.
Microsoft recommends that you call asynchronous methods in your code whenever possible for optimal performance. The recommended methods are those that use the Async/Await pattern. For more information about asynchronous programming in .NET with Async/Await, see Asynchronous Programming with Async and Await (C# and Visual Basic).
The corresponding method that uses Async/Await is ChangeLeaseAsync.