asp.net.ph

HttpCacheVaryByParams Class

System.Web Namespace


Provides a type-safe way to set the VaryByParams property that identifies the HTTP Get or Post parameters that ASP.NET uses to choose a response from multiple cached responses.

HttpCacheVaryByParams Class Members

Collapse   Constructors

Visibility Constructor Parameters
public HttpCacheVaryByParams ( )

Collapse   Properties

Visibility Name Value Type Accessibility
public IgnoreParams Boolean [ Get , Set ]
public Item ( String header ) Boolean [ Get , Set ]

Collapse   Methods

Visibility Name Parameters Return Type
public GetParams ( ) String
public SetParams ( String parameters ) Void

Remarks

For more information on HTTP cache-control headers, see Section 14 Header Field Definitions in the Hypertext Transfer Protocol ( HTTP/1.1 ) documentation, available from the World Wide Web Consortium.

Syntax


To set a property:

Response.Cache.VaryByParams.propertyName = value;
  C# VB

To return the value of a property:

Type var = Response.Cache.VaryByParams.propertyName;
  C# VB

See Also

Caching Multiple Versions of a Page Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph