Share via


JwtSecurityToken.Expiration Property

Gets the 'value' of the expiration claim from JSON in the form of { aud, 'exp' }.

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

Syntax

'Declaration
Public ReadOnly Property Expiration As Nullable(Of Integer)
public Nullable<int> Expiration { get; }
public:
property Nullable<int> Expiration {
    Nullable<int> get ();
}
member Expiration : Nullable<int> with get
function get Expiration () : Nullable<int>

Property Value

Type: System.Nullable<Int32>
Returns Int32.

Remarks

If the expiration claim is not found or could not be converted to Int32, null is returned.

.NET Framework Security

See Also

Reference

JwtSecurityToken Class

System.IdentityModel.Tokens Namespace