Export (0) Print
Expand All

PageAdapter.CacheVaryByParams Property

Gets a list of additional parameters from HTTP GET and POST requests by which caching is varied for the Web page to which this derived page adapter is attached.

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

public virtual StringCollection CacheVaryByParams { get; }

Property Value

Type: System.Collections.Specialized.StringCollection
An IList that contains a list of the GET and POST parameters; otherwise, null.

Entities on the Web that cache Web pages cache multiple versions based on, among other factors, the request parameters. For example, a version for each store location within a retail chain for which a page might be generated would typically be cached based on the parameter name (for example, StoreID).

For specific browsers, it might be necessary to vary caching by GET or POST parameters in addition to the parameters that control target-independent caching. For example, it might be necessary to cache different versions of a page for different mobile phone service providers.

Notes to Inheritors

When you inherit from the PageAdapter class, you can override the CacheVaryByParams property to return a list of the additional GET or POST parameters to control target-specific caching. The CacheVaryByParams base method returns null.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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

Community Additions

© 2014 Microsoft