NamedKeySecurityToken.ValidTo Property
Gets the expiration time as a DateTime
Namespace: System.IdentityModel.Tokens
Assembly: System.IdentityModel.Tokens.Jwt (in System.IdentityModel.Tokens.Jwt.dll)
Syntax
'Declaration
Public Overrides ReadOnly Property ValidTo As DateTime
public override DateTime ValidTo { get; }
public:
virtual property DateTime ValidTo {
DateTime get () override;
}
abstract ValidTo : DateTime with get
override ValidTo : DateTime with get
override function get ValidTo () : DateTime
Property Value
Type: System.DateTime
Returns DateTime.
Remarks
The default is: MaxValue.
.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.