HttpCachePolicyElement.MaximumAge Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets or sets the maximum age permitted for a resource returned from the cache.

Namespace:   System.Net.Configuration
Assembly:  System (in System.dll)

[ConfigurationPropertyAttribute("maximumAge", DefaultValue = "10675199.02:48:05.4775807")]
public TimeSpan MaximumAge { get; set; }

Property Value

Type: System.TimeSpan

A TimeSpan value that specifies the maximum age for cached resources specified in the configuration file.

If the cached copy of the resource is older than the specified time value, the resource must be revalidated by comparing the cached resource to the resource on the server.

.NET Framework
Available since 2.0
Return to top
Show: