Clase OutputCacheAttribute
Proporciona una forma declarativa de habilitar el almacenamiento en caché de resultados.
Espacio de nombres: System.ServiceModel.DomainServices.Server
Ensamblado: System.ServiceModel.DomainServices.Server (en system.servicemodel.domainservices.server.dll)
Uso
'Uso
Dim instance As OutputCacheAttribute
Sintaxis
'Declaración
<AttributeUsageAttribute(AttributeTargets.Method Or AttributeTargets.Property Or AttributeTargets.Field, AllowMultiple:=False, Inherited:=True)> _
Public NotInheritable Class OutputCacheAttribute
Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Method|AttributeTargets.Property|AttributeTargets.Field, AllowMultiple=false, Inherited=true)]
public sealed class OutputCacheAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Method|AttributeTargets::Property|AttributeTargets::Field, AllowMultiple=false, Inherited=true)]
public ref class OutputCacheAttribute sealed : public Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Method|AttributeTargets.Property|AttributeTargets.Field, AllowMultiple=false, Inherited=true) */
public final class OutputCacheAttribute extends Attribute
AttributeUsageAttribute(AttributeTargets.Method|AttributeTargets.Property|AttributeTargets.Field, AllowMultiple=false, Inherited=true)
public final class OutputCacheAttribute extends Attribute
Notas
Utilice el almacenamiento en caché de resultados desde llamadas a métodos para mejorar el rendimiento. Aplique el atributo a métodos cuyos resultados desee almacenar en caché.
Jerarquía de herencia
System.Object
System.Attribute
System.ServiceModel.DomainServices.Server.OutputCacheAttribute
Seguridad para subprocesos
Cualquier miembro estático público (Compartidos en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.
Plataformas
Plataformas de desarrollo
Microsoft Windows XP Home Edition, Windows XP Professional, Windows Server 2003 , Windows Server 2008 y Windows 2000
Plataformas de destino
Vea también
Referencia
Miembros OutputCacheAttribute
Espacio de nombres System.ServiceModel.DomainServices.Server