Langue

CacheConditionAttribute Classe

Définition

Déclare les dimensions variables qui, lorsqu’elles sont actives sur le CacheView englobant, incluent le composant dans la sortie mise en cache au lieu de le traiter comme un composant mis en cache actif (ou lève lorsqu’il est annoté avec CacheBehaviorAttribute et 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
Héritage
CacheConditionAttribute
Attributs

Constructeurs

Nom Description
CacheConditionAttribute(CacheVaryBy)

Initialise une nouvelle instance de la classe CacheConditionAttribute.

Propriétés

Nom Description
VaryBy

Obtient les dimensions variables qui, lorsqu’elles sont actives sur le CacheView englobant, incluent le composant dans la sortie mise en cache.

S’applique à