Επεξεργασία

Κοινή χρήση μέσω


RequestCachingSection.UnspecifiedMaximumAge Property

Definition

Gets or sets a value used as the maximum age for cached resources that do not have expiration information.

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

Property Value

A TimeSpan that provides a default maximum age for cached resources.

Attributes

Remarks

Setting this property ensures that a resource that does not have expiration header information does not remain fresh in the cache indefinitely.

Applies to