Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

HostingEnvironmentSection.UrlMetadataSlidingExpiration Property

Gets or sets a value that determines how ASP.NET caches URL metadata.

Namespace:  System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)
[TypeConverterAttribute(typeof(InfiniteTimeSpanConverter))]
[TimeSpanValidatorAttribute(MinValueString = "00:00:00", MaxValueString = "10675199.02:48:05.4775807")]
[ConfigurationPropertyAttribute("urlMetadataSlidingExpiration", DefaultValue = "00:01:00")]
public TimeSpan UrlMetadataSlidingExpiration { get; set; }

Property Value

Type: System.TimeSpan
A value that determines how ASP.NET caches URL metadata. The default value is 1 minute.

An example of URL metadata is information in the Web.config file about security restrictions that apply to a particular URL.

The following values have special meanings:

  • "Infinite". URL metadata is cached without a sliding expiration. This means caching continues until the server uses the maximum allotted amount of memory. This is the default behavior in ASP.NET 3.5 and earlier versions.

  • "00:00:00". URL metadata is not cached. The metadata is regenerated with every request. This is more efficient for scenarios where the same URL is rarely requested.

.NET Framework

Supported in: 4.5.1, 4.5, 4

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.