Skip to content

AcquireLeaseResult Constructors

AcquireLeaseResult class, which demonstrates result of acquiring or renewing lease operation

AcquireLeaseResult(AcquiredLease?, ResponseCode, Exception?)

View source
public AcquireLeaseResult(AcquiredLease? acquiredLease, ResponseCode statusCode, Exception? failureException)
Initializes a new instance of the AcquireLeaseResult class.

Parameters

acquiredLeaseAcquiredLease?
The acquired or renewed lease, or null if the operation failed.
statusCodeResponseCode
The operation status.
failureExceptionException?
The exception which caused the operation to fail, if any.