JwtPayload.ValidFrom Property
Gets 'value' of the notbefore claim from JSON in the form of { nbf, '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 ValidFrom As DateTime
public DateTime ValidFrom { get; }
public:
property DateTime ValidFrom {
DateTime get ();
}
member ValidFrom : DateTime with get
function get ValidFrom () : DateTime
Property Value
Type: System.DateTime
Returns DateTime.
Remarks
If the notbefore claim is not found, then MinValue is returned.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.