Condividi tramite


OutputCacheProfile.Enabled Proprietà

Definizione

Ottiene o imposta un valore che indica se la memorizzazione nella cache è abilitata.

public:
 property bool Enabled { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("enabled", DefaultValue=true)]
public bool Enabled { get; set; }
[<System.Configuration.ConfigurationProperty("enabled", DefaultValue=true)>]
member this.Enabled : bool with get, set
Public Property Enabled As Boolean

Valore della proprietà

true se la memorizzazione nella cache è abilitata; in caso contrario, false. Il valore predefinito è false.

Attributi

Esempio

Nell'esempio di codice seguente viene illustrato come utilizzare la Enabled proprietà .


 // Get the current Enabled.
Boolean enabledValue = 
    outputCacheProfile.Enabled;

 // Set the Enabled.
 outputCacheProfile.Enabled = 
     false;
    ' Get the current Enabled property.
    Dim enabledValue As [Boolean] = _
    outputCacheProfile.Enabled
  
    ' Set the Enabled property.
outputCacheProfile.Enabled = False

Commenti

La Enabled proprietà consente di abilitare o disabilitare il meccanismo di memorizzazione nella cache in un'unica posizione. Influisce su tutte le pagine o i controlli che usano questo OutputCacheProfileoggetto .

Si applica a

Vedi anche