Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Page.InitOutputCache Method

Initializes the output cache for the current page request.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Protected method InitOutputCache(OutputCacheParameters) Infrastructure. Initializes the output cache for the current page request based on an OutputCacheParameters object.
Protected method InitOutputCache(Int32, String, String, OutputCacheLocation, String) Infrastructure. Initializes the output cache for the current page request.
Protected method InitOutputCache(Int32, String, String, String, OutputCacheLocation, String) Infrastructure. Initializes the output cache for the current page request.
Top

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.