Language

CacheConditionAttribute Class

Definition

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.

Applies to