System.Web.Configuration.OutputCacheProfile.Duration Property

Gets or sets the time duration during which the page or control is cached.

Syntax

[System.Configuration.ConfigurationProperty("duration", DefaultValue="-1")]
public int Duration { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The OutputCacheProfile.Duration represents the time in seconds that the page or user control is cached. Setting this property establishes an expiration policy for HTTP responses from the page or control to which it applies and will automatically cause the caching of their output.

Note:

The OutputCacheProfile.Duration must be defined in either the profile or the @ OutputCache directive of a page using the profile.

Requirements

Namespace: System.Web.Configuration
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0