Export (0) Print
Expand All

OutputCacheParameters.VaryByHeader Property

Gets or sets a comma-delimited set of header names used to vary the cache entry. The header names identify HTTP headers associated with the request.

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

public string VaryByHeader { get; set; }
/** @property */
public String get_VaryByHeader ()

/** @property */
public void set_VaryByHeader (String value)

public function get VaryByHeader () : String

public function set VaryByHeader (value : String)

Not applicable.

Property Value

A list of headers by which to vary the content.

When this property is set to multiple headers, the output cache contains a different version of the requested document for each specified header.

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

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft