System.Web.UI.ControlCachePolicy.Duration Property

Gets or sets the amount of time that cached items are to remain in the output cache.

Syntax

public TimeSpan Duration { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

If an absolute expiration policy is set using the ControlCachePolicy.SetSlidingExpiration(bool) method, the ControlCachePolicy.Duration property returns the amount of time remaining until cache entry expiration.

Requirements

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