OutputCacheParameters.VaryByCustom Property

Gets a list of custom strings that the output cache uses to vary the cache entry.

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

public string VaryByCustom { get; set; }
/** @property */
public String get_VaryByCustom ()

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

public function get VaryByCustom () : String

public function set VaryByCustom (value : String)

Not applicable.

Property Value

The list of custom strings.

If you specify "browser" for this property, the cache entry will be varied by browser type and major version number. If a custom string is entered, you must override the System.Web.HttpApplication.GetVaryByCustomString(System.Web.HttpContext,System.String) method in your application's Global.asax file.

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: