Changes the lease ID on this blob.
Namespace: Microsoft.WindowsAzure.Storage.Blob
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Usage
Visual Basic |
---|
Dim instance As CloudBlockBlob
Dim proposedLeaseId As String
Dim accessCondition As AccessCondition
Dim returnValue As IAsyncOperation(Of String)
returnValue = instance.ChangeLeaseAsync(proposedLeaseId, accessCondition) |
Syntax
Visual Basic |
---|
Public Function ChangeLeaseAsync ( _
proposedLeaseId As String, _
accessCondition As AccessCondition _
) As IAsyncOperation(Of String) |
C# |
---|
public IAsyncOperation<string> ChangeLeaseAsync (
string proposedLeaseId,
AccessCondition accessCondition
) |
C++ |
---|
public:
virtual IAsyncOperation<String^>^ ChangeLeaseAsync (
String^ proposedLeaseId,
AccessCondition^ accessCondition
) sealed |
J# |
---|
public final IAsyncOperation<String> ChangeLeaseAsync (
String proposedLeaseId,
AccessCondition accessCondition
) |
JScript |
---|
public final function ChangeLeaseAsync (
proposedLeaseId : String,
accessCondition : AccessCondition
) : 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 blob, including a required lease ID.
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