Share via


JwtPayload.ValidTo Property

Gets 'value' of the expiration claim from JSON in the form of { exp, 'value' }, which is converted to a DateTime object assuming 'value' is seconds since UnixEpoch (UTC 1970-01-01T0:0:0Z).

Namespace:  System.IdentityModel.Tokens
Assembly:  System.IdentityModel.Tokens.Jwt (in System.IdentityModel.Tokens.Jwt.dll)

Syntax

'Declaration
Public ReadOnly Property ValidTo As DateTime
public DateTime ValidTo { get; }
public:
property DateTime ValidTo {
    DateTime get ();
}
member ValidTo : DateTime with get
function get ValidTo () : DateTime

Property Value

Type: System.DateTime
Returns DateTime.

Remarks

If the 'expiration' claim is not found, then MinValue is returned.

.NET Framework Security

See Also

Reference

JwtPayload Class

System.IdentityModel.Tokens Namespace