Provides an application-wide implementation of the VaryByCustom property.

Namespace:  EPiServer
Assembly:  EPiServer (in EPiServer.dll) Version: 5.2.375.236

Syntax

C#
public override string GetVaryByCustomString(
	HttpContext context,
	string custom
)

Parameters

context
Type: System.Web..::.HttpContext
An HttpContext object that contains information about the current Web request.
custom
Type: System..::.String
The custom string that specifies which cached response is used to respond to the current request.

Return Value

If the value of the custom parameter is "path", the requsets path will be returned. If the value of the custom parameter is "browser", the browser's Type; otherwise, null.

See Also