HttpCachePolicyWrapper.SetVaryByCustom Method (String)

 

Specifies a text string to vary cached output responses by.

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

override SetVaryByCustom : 
        custom:string -> unit

Parameters

custom
Type: System.String

The text string to vary cached output by.

Exception Condition
ArgumentNullException

custom is null.

InvalidOperationException

The SetVaryByCustom method has already been called.

.NET Framework
Available since 3.5
Return to top
Show: