Page.InitOutputCache Method

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes the output cache for the current page request.

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

NameDescription
System_CAPS_protmethodInitOutputCache(Int32, String, String, OutputCacheLocation, String)

This API supports the product infrastructure and is not intended to be used directly from your code. Initializes the output cache for the current page request.

System_CAPS_protmethodInitOutputCache(Int32, String, String, String, OutputCacheLocation, String)

This API supports the product infrastructure and is not intended to be used directly from your code. Initializes the output cache for the current page request.

System_CAPS_protmethodInitOutputCache(OutputCacheParameters)

This API supports the product 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.

This method is not intended to be used directly from your code. To enable and manipulate output caching for a page, use one of these approaches:

  • Set options declaratively using the directive in the .aspx file.

  • Use the methods and properties of the HttpCachePolicy class, which is exposed by the Response.Cache object in the page's code.

For more information, see Caching ASP.NET Pages.

Return to top
Show: