LeaseLostException Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Exception occurred when lease is lost, that would typically happen when it is taken by another host. Other cases: communication failure, number of retries reached, lease not found.
[System.Serializable]
public class LeaseLostException : Exception
[<System.Serializable>]
type LeaseLostException = class
inherit Exception
Public Class LeaseLostException
Inherits Exception
- Inheritance
-
LeaseLostException
- Attributes
Constructors
LeaseLostException() |
Initializes a new instance of the LeaseLostException class. |
LeaseLostException(ILease) |
Initializes a new instance of the LeaseLostException class using the specified lease. |
LeaseLostException(ILease, Exception, Boolean) |
Initializes a new instance of the LeaseLostException class using the specified lease, inner exception, and a flag indicating whether lease is gone. |
LeaseLostException(SerializationInfo, StreamingContext) |
Initializes a new instance of the LeaseLostException class using default values. |
LeaseLostException(String) |
Initializes a new instance of the LeaseLostException class using error message. |
LeaseLostException(String, Exception) |
Initializes a new instance of the LeaseLostException class using error message and inner exception. |
Properties
IsGone |
Gets a value indicating whether lease doesn't exist. |
Lease |
Gets the lost lease. |
Methods
GetObjectData(SerializationInfo, StreamingContext) |
Sets the System.Runtime.Serialization.SerializationInfo with information about the exception. |
Applies to
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for