Lenguaje

CacheConditionAttribute Clase

Definición

Declara las dimensiones de variación que, cuando todas las activas en cacheView envolventes incluyen el componente en la salida almacenada en caché en lugar de tratarlo como un componente almacenado en caché en directo (o se produce cuando se anota con CacheBehaviorAttribute y 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
Herencia
CacheConditionAttribute
Atributos

Constructores

Nombre Description
CacheConditionAttribute(CacheVaryBy)

Inicializa una nueva instancia de la clase CacheConditionAttribute.

Propiedades

Nombre Description
VaryBy

Obtiene las dimensiones de variación que, cuando todas las activas en la cacheView envolvente incluyen el componente en la salida almacenada en caché.

Se aplica a