HttpCachePolicyWrapper.SetVaryByCustom Method (String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Specifies a text string to vary cached output responses by.

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

public override void SetVaryByCustom(
	string custom
)

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: