ValidatedLifetime Struct
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.
Represents a validated lifetime, including the NotBefore and Expires values.
public readonly struct ValidatedLifetime : IEquatable<Microsoft.IdentityModel.Tokens.Experimental.ValidatedLifetime>
type ValidatedLifetime = struct
Public Structure ValidatedLifetime
Implements IEquatable(Of ValidatedLifetime)
- Inheritance
-
ValidatedLifetime
- Implements
Constructors
| Name | Description |
|---|---|
| ValidatedLifetime(Nullable<DateTime>, Nullable<DateTime>) |
Initializes a new instance of ValidatedLifetime. |
Properties
| Name | Description |
|---|---|
| Expires |
The DateTime representing the token's expiration time. |
| NotBefore |
The DateTime representing the time from which the token is considered valid. |
Methods
| Name | Description |
|---|---|
| Equals(Object) |
Determines whether the specified object is equal to the current instance of ValidatedLifetime. |
| Equals(ValidatedLifetime) |
Determines whether the specified ValidatedLifetime is equal to the current instance. |
| GetHashCode() |
Returns the hash code for this instance of ValidatedLifetime. |
| ToString() |
The validated lifetime's string representation. |
Operators
| Name | Description |
|---|---|
| Equality(ValidatedLifetime, ValidatedLifetime) |
Equality comparison operator for ValidatedLifetime. |
| Inequality(ValidatedLifetime, ValidatedLifetime) |
Inequality comparison operator for ValidatedLifetime. |