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,提供快取資源的預設最長保留期限。

屬性

備註

設定此屬性可確保沒有到期標頭信息的資源不會無限期地保留在快取中。

適用於