Condividi tramite


Classe OutputCacheAttribute

Fornisce una modalità dichiarativa per abilitare la memorizzazione dell'output nella cache.

Spazio dei nomi: System.ServiceModel.DomainServices.Server
Assembly: System.ServiceModel.DomainServices.Server (in system.servicemodel.domainservices.server.dll)

Utilizzo

'Utilizzo
Dim instance As OutputCacheAttribute

Sintassi

'Dichiarazione
<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

Osservazioni

Utilizzare la memorizzazione nella cache di output dalle chiamate al metodo per migliorare le prestazioni. Applicare l'attributo ai metodi di cui si desidera memorizzare l'output nella cache.

Gerarchia di ereditarietà

System.Object
   System.Attribute
    System.ServiceModel.DomainServices.Server.OutputCacheAttribute

Sicurezza dei thread

Tutti i membri statici pubblici (Shared in Visual Basic) di questo tipo sono thread-safe. Non è invece garantita la sicurezza dei membri dell'istanza.

Piattaforme

Piattaforme di sviluppo

Windows XP Home Edition, Windows XP Professional, Windows Server 2003 , Windows Server 2008 e Windows 2000

Piattaforme di destinazione

Vedere anche

Riferimento

Membri OutputCacheAttribute
Spazio dei nomi System.ServiceModel.DomainServices.Server