OutputCacheProfile.Enabled Eigenschap

Definitie

Hiermee wordt een waarde opgehaald of ingesteld die aangeeft of caching is ingeschakeld.

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

Waarde van eigenschap

true als caching is ingeschakeld; anders, false. De standaardwaarde is false.

Kenmerken

Voorbeelden

In het volgende codevoorbeeld ziet u hoe u de Enabled eigenschap gebruikt.


 // 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

Opmerkingen

Met de Enabled eigenschap kunt u het cachemechanisme op slechts één plaats in- of uitschakelen. Dit is van invloed op alle pagina's of besturingselementen die deze OutputCacheProfilegebruiken.

Van toepassing op

Zie ook