HttpCachePolicyBase.SetOmitVaryStar Method (Boolean)

 
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.

When overridden in a derived class, specifies whether the response contains the vary:* header when caching varies by parameters.

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

public virtual void SetOmitVaryStar(
	bool omit
)

Parameters

omit
Type: System.Boolean

true to direct the HttpCachePolicy object not to use the * value for its VaryByHeaders property; otherwise, false.

Exception Condition
NotImplementedException

Always.

.NET Framework
Available since 3.5
Return to top
Show: