Changes the lease ID on this container.
Namespace: Microsoft.WindowsAzure.Storage.Blob
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Usage
Visual Basic |
---|
Dim instance As CloudBlobContainer
Dim proposedLeaseId As String
Dim accessCondition As AccessCondition
Dim options As BlobRequestOptions
Dim operationContext As OperationContext
Dim returnValue As IAsyncOperation(Of String)
returnValue = instance.ChangeLeaseAsync(proposedLeaseId, accessCondition, options, operationContext) |
Syntax
Visual Basic |
---|
Public Function ChangeLeaseAsync ( _
proposedLeaseId As String, _
accessCondition As AccessCondition, _
options As BlobRequestOptions, _
operationContext As OperationContext _
) As IAsyncOperation(Of String) |
C# |
---|
public IAsyncOperation<string> ChangeLeaseAsync (
string proposedLeaseId,
AccessCondition accessCondition,
BlobRequestOptions options,
OperationContext operationContext
) |
C++ |
---|
public:
IAsyncOperation<String^>^ ChangeLeaseAsync (
String^ proposedLeaseId,
AccessCondition^ accessCondition,
BlobRequestOptions^ options,
OperationContext^ operationContext
) |
J# |
---|
public IAsyncOperation<String> ChangeLeaseAsync (
String proposedLeaseId,
AccessCondition accessCondition,
BlobRequestOptions options,
OperationContext operationContext
) |
JScript |
---|
public function ChangeLeaseAsync (
proposedLeaseId : String,
accessCondition : AccessCondition,
options : BlobRequestOptions,
operationContext : OperationContext
) : IAsyncOperation<String> |
Parameters
- proposedLeaseId
A string representing the proposed lease ID for the new lease. This cannot be null
.
- accessCondition
An AccessCondition object that represents the access conditions for the container, including a required lease ID.
- options
A BlobRequestOptions object that specifies additional options for the request.
- operationContext
An OperationContext object that represents the context for the current operation.
Return Value
The new lease ID.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
See Also