System.Web.UI.Page.InitOutputCache Method

Initializes the output cache for the current page request based on an System.Web.UI.OutputCacheParameters object.

Syntax

protected virtual void InitOutputCache (OutputCacheParameters cacheSettings)

Parameters

cacheSettings
An System.Web.UI.OutputCacheParameters that contains the cache settings.

Remarks

You should not call this method. To enable and manipulate output caching for a page, use either the @ OutputCache directive in the .aspx file, or the methods and properties of the System.Web.HttpCachePolicy class. The latter are accessible through Response.Cache syntax in the page's code declaration block or code-behind file. For more information, see Caching ASP.NET Pages.

Requirements

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