Share via


RequestCachingSection.UnspecifiedMaximumAge 属性

定义

获取或设置一个值,该值用作没有过期信息的缓存资源的最大生存期。

public:
 property TimeSpan UnspecifiedMaximumAge { TimeSpan get(); void set(TimeSpan value); };
[System.Configuration.ConfigurationProperty("unspecifiedMaximumAge", DefaultValue="1.00:00:00")]
public TimeSpan UnspecifiedMaximumAge { get; set; }
[<System.Configuration.ConfigurationProperty("unspecifiedMaximumAge", DefaultValue="1.00:00:00")>]
member this.UnspecifiedMaximumAge : TimeSpan with get, set
Public Property UnspecifiedMaximumAge As TimeSpan

属性值

一个 TimeSpan,提供缓存资源的默认最大生存期。

属性

注解

设置此属性可确保没有过期标头信息的资源不会无限期地在缓存中保持最新状态。

适用于