Idioma

CacheBehaviorAttribute Classe

Definição

Marca um componente para que ele não seja inserido na saída armazenada em cache de um CacheView delimitador e especifica como ele se comporta nesse caso. Por padrão, o componente permanece ativo (Rerender): ele executa seu próprio ciclo de vida em cada solicitação enquanto seus parâmetros são capturados uma vez e reproduzidos inalterados em ocorrências de cache. Use Throw para gerar em vez de renderizar ao vivo.

Combine para incluir o componente na saída armazenada em cache quando o limite variar de acordo com CacheConditionAttribute as dimensões fornecidas.

[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)]
public sealed class CacheBehaviorAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)>]
type CacheBehaviorAttribute = class
    inherit Attribute
Public NotInheritable Class CacheBehaviorAttribute
Inherits Attribute
Herança
CacheBehaviorAttribute
Atributos

Construtores

Nome Description
CacheBehaviorAttribute(CacheBehavior)

Inicializa uma nova instância da classe CacheBehaviorAttribute.

Propriedades

Nome Description
Behavior

Obtém o comportamento a ser aplicado quando o componente não pode ser inserido na saída armazenada em cache de um CacheView delimitador.

Aplica-se a