GenericXmlSecurityToken.ValidTo 属性

定义

获取此安全令牌有效的最后时刻。Gets the last instant in time at which this security token is valid.

public:
 virtual property DateTime ValidTo { DateTime get(); };
public override DateTime ValidTo { get; }
member this.ValidTo : DateTime
Public Overrides ReadOnly Property ValidTo As DateTime

属性值

DateTime

一个 DateTime,表示此安全令牌有效的最后时刻。A DateTime that represents the last instant in time at which this security token is valid.

注解

使用 ValidFromValidTo 属性可确定 GenericXmlSecurityToken 令牌有效的时间段。Use the ValidFrom and ValidTo properties to determine the time period in which a GenericXmlSecurityToken token is valid. ValidFromValidTo 属性分别表示此安全令牌有效的最初时刻和最后时刻。The ValidFrom and ValidTo properties represent the first and last instants in time in which the security token is valid, respectively.

ValidTo 属性是使用构造函数的 expirationTime 参数指定的。The ValidTo property is specified using the expirationTime parameter of the constructor. 此属性返回的值总是为协调世界时 (UTC)。The value returned from this property is always in Coordinated Universal Time (UTC).

适用于