Click or drag to resize
OutputCacheKeyOptionsExtensionsVaryByCookieLevel Method
Ensures that output cache vary by cookie level.

Namespace: Kentico.Web.Mvc
Assembly: Kentico.Web.Mvc (in Kentico.Web.Mvc.dll) Version: 12.0.0
Syntax
C#
public static IOutputCacheKeyOptions VaryByCookieLevel(
	this IOutputCacheKeyOptions options
)

Parameters

options
Type: Kentico.Web.MvcIOutputCacheKeyOptions
IOutputCacheKeyOptions object.

Return Value

Type: IOutputCacheKeyOptions

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IOutputCacheKeyOptions. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also