CacheVaryBy Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Describes which vary-by dimensions are active on an enclosing CacheView. Used as flags in CacheConditionAttribute to express conditional cache inclusion, and internally to communicate the active dimensions to the renderer.
This enumeration supports a bitwise combination of its member values.
[System.Flags]
public enum CacheVaryBy
[<System.Flags>]
type CacheVaryBy =
Public Enum CacheVaryBy
- Inheritance
-
CacheVaryBy
- Attributes
Fields
| Name | Value | Description |
|---|---|---|
| None | 0 | No vary-by dimensions. |
| Query | 1 | Vary by query string parameters. |
| Route | 2 | Vary by route parameters. |
| Header | 4 | Vary by HTTP header values. |
| Cookie | 8 | Vary by cookie values. |
| User | 16 | Vary by the authenticated user. |
| Culture | 32 | Vary by culture. |