LocalClientSecuritySettings.MaxCookieCachingTime 属性
定义
获取或设置安全会话 Cookie 的最大缓存时间。Gets or sets the maximum caching time for secure conversation cookies.
public:
property TimeSpan MaxCookieCachingTime { TimeSpan get(); void set(TimeSpan value); };
public TimeSpan MaxCookieCachingTime { get; set; }
member this.MaxCookieCachingTime : TimeSpan with get, set
Public Property MaxCookieCachingTime As TimeSpan
属性值
一个 TimeSpan,表示安全会话 Cookie 的最大缓存时间。A TimeSpan that represents the maximum caching time for secure conversation cookies. 默认值为 10675199 天。The default is 10675199 days.
例外
此属性使用 set 设置为一个小于 0 的值。The property is set to a value less than 0.
示例
此示例演示如何获取 MaxCookieCachingTime 值。This example shows how to get the MaxCookieCachingTime value.
TimeSpan maxCookieCachingTime = settings.MaxCookieCachingTime;
Dim maxCookieCachingTime As TimeSpan = settings.MaxCookieCachingTime