Share via


CacheVaryByRules Class

Definition

Represents vary-by rules.

public sealed class CacheVaryByRules
type CacheVaryByRules = class
Public NotInheritable Class CacheVaryByRules
Inheritance
CacheVaryByRules

Constructors

CacheVaryByRules()

Properties

CacheKeyPrefix

Gets or sets a prefix to vary by.

HeaderNames

Gets or sets the list of header names to vary by.

QueryKeys

Gets or sets the list of query string keys to vary by.

RouteValueNames

Gets or sets the list of route value names to vary by.

VaryByHost

Gets or sets whether to vary by the HOST header value or not.

VaryByValues

Gets a dictionary of key-pair values to vary by.

Applies to