Constructs an access condition such that an operation will be performed only if the lease ID on the resource matches the specified lease ID.
Namespace: Microsoft.WindowsAzure.Storage
Assembly: Microsoft.WindowsAzure.Storage (in Microsoft.WindowsAzure.Storage.dll)
Usage
Visual Basic |
---|
Dim leaseId As String
Dim returnValue As AccessCondition
returnValue = AccessCondition.GenerateLeaseCondition(leaseId) |
Syntax
Visual Basic |
---|
Public Shared Function GenerateLeaseCondition ( _
leaseId As String _
) As AccessCondition |
C# |
---|
public static AccessCondition GenerateLeaseCondition (
string leaseId
) |
C++ |
---|
public:
static AccessCondition^ GenerateLeaseCondition (
String^ leaseId
) |
J# |
---|
public static AccessCondition GenerateLeaseCondition (
String leaseId
) |
JScript |
---|
public static function GenerateLeaseCondition (
leaseId : String
) : AccessCondition |
Parameters
- leaseId
The lease ID to compare to the lease ID of the resource.
Return Value
An
AccessCondition object that represents the lease condition.
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