CacheConditionAttribute Class
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.
Declares the vary-by dimensions that, when all active on the enclosing CacheView, include the component in the cached output instead of treating it as a live cached component (or throwing when it is annotated with CacheBehaviorAttribute and Throw).
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)]
public sealed class CacheConditionAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)>]
type CacheConditionAttribute = class
inherit Attribute
Public NotInheritable Class CacheConditionAttribute
Inherits Attribute
- Inheritance
-
CacheConditionAttribute
- Attributes
Constructors
| Name | Description |
|---|---|
| CacheConditionAttribute(CacheVaryBy) |
Initializes a new instance of the CacheConditionAttribute class. |
Properties
| Name | Description |
|---|---|
| VaryBy |
Gets the vary-by dimensions that, when all active on the enclosing CacheView, include the component in the cached output. |