Idioma

CacheConditionAttribute Classe

Definição

Declara as dimensões de variação por que, quando todas as ativas no CacheView delimitador, incluem o componente na saída armazenada em cache em vez de tratá-lo como um componente em cache dinâmico (ou quando ele é anotado com CacheBehaviorAttribute e 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
Herança
CacheConditionAttribute
Atributos

Construtores

Nome Description
CacheConditionAttribute(CacheVaryBy)

Inicializa uma nova instância da classe CacheConditionAttribute.

Propriedades

Nome Description
VaryBy

Obtém as dimensões de variação por que, quando todas as ativas no CacheView delimitador, incluem o componente na saída armazenada em cache.

Aplica-se a