Export (0) Print
Expand All

Page.InitOutputCache Method (OutputCacheParameters)

This method supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Initializes the output cache for the current page request based on an OutputCacheParameters object.

Namespace: System.Web.UI
Assembly: System.Web (in system.web.dll)

protected internal virtual void InitOutputCache (
	OutputCacheParameters cacheSettings
)
protected void InitOutputCache (
	OutputCacheParameters cacheSettings
)
protected internal function InitOutputCache (
	cacheSettings : OutputCacheParameters
)
Not applicable.

Parameters

cacheSettings

An OutputCacheParameters that contains the cache settings.

Exception typeCondition

HttpException

The cache profile was not found.

- or -

A missing directive or configuration settings profile attribute.

ArgumentOutOfRangeException

The output cache settings location is invalid.

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 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.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft