CacheConditionAttribute Classe
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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. |