HttpCachePolicyElement.MaximumStale 属性
定义
获取或设置从缓存返回的资源所允许的最大过期值。Gets or sets the maximum staleness value permitted for a resource returned from the cache.
public:
property TimeSpan MaximumStale { TimeSpan get(); void set(TimeSpan value); };
[System.Configuration.ConfigurationProperty("maximumStale", DefaultValue=Mono.Cecil.CustomAttributeArgument)]
public TimeSpan MaximumStale { get; set; }
[<System.Configuration.ConfigurationProperty("maximumStale", DefaultValue=Mono.Cecil.CustomAttributeArgument)>]
member this.MaximumStale : TimeSpan with get, set
Public Property MaximumStale As TimeSpan
属性值
TimeSpan 值,被设置为配置文件中指定的最大过期值。A TimeSpan value that is set to the maximum staleness value specified in the configuration file.
- 属性
注解
此属性指定在内容过期后,资源的缓存副本可接受的时间量。This property specifies the amount of time after content expiration during which the cached copy of the resource is acceptable.