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:
property String^ VaryByHeader {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

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.

.NET Framework
Available since 2.0
Return to top
Show: