MobilePage.InitOutputCache Method (Int32, String, String, OutputCacheLocation, String)

Initializes the output cache for the current page request.

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

protected:
virtual void InitOutputCache (
	int duration, 
	String^ varyByHeader, 
	String^ varyByCustom, 
	OutputCacheLocation location, 
	String^ varyByParam
) override
protected void InitOutputCache (
	int duration, 
	String varyByHeader, 
	String varyByCustom, 
	OutputCacheLocation location, 
	String varyByParam
)
protected override function InitOutputCache (
	duration : int, 
	varyByHeader : String, 
	varyByCustom : String, 
	location : OutputCacheLocation, 
	varyByParam : String
)

Parameters

duration

The amount of time that objects stored in the output cache are valid.

varyByHeader

A semicolon-separated list of headers that content from the output cache will vary by.

varyByCustom

The Vary HTTP header.

location

One of the OutputCacheLocation values.

varyByParam

A semicolon-separated list of parameters, received by a GET or POST method, that content from the output cache will vary by.

This member overrides the Page.InitOutputCache method to add additional VaryByHeader keywords to provide correct caching of page output.

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

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1

Community Additions

ADD
Show: