UrlMetadataSlidingExpiration Property
Collapse the table of content
Expand the table of content

HostingEnvironmentSection.UrlMetadataSlidingExpiration Property

.NET Framework (current version)
 

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

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

[ConfigurationPropertyAttribute("urlMetadataSlidingExpiration", 
	DefaultValue = "00:01:00")]
[TypeConverterAttribute(typeof(InfiniteTimeSpanConverter))]
[TimeSpanValidatorAttribute(MinValueString = "00:00:00", MaxValueString = "10675199.02:48:05.4775807")]
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
Available since 4.0
Return to top
Show:
© 2016 Microsoft