OutputCacheSection.EnableFragmentCache Eigenschap

Definitie

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

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

Waarde van eigenschap

true als de fragmentcache is ingeschakeld; anders, false. De standaardwaarde is true.

Kenmerken

Voorbeelden

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


// Get the current EnabledFragmentCache.
Boolean enabledFragmentCache =
    outputCacheSection.EnableFragmentCache;

// Set the EnabledFragmentCache.
outputCacheSection.EnableFragmentCache = false;
' Get the current EnabledFragmentCache.
  Dim enabledFragmentCache As [Boolean] = _
  outputCacheSection.EnableFragmentCache

' Set the EnabledFragmentCache.
outputCacheSection.EnableFragmentCache = False

Opmerkingen

Als de EnableFragmentCache eigenschap is ingesteld op false, wordt er geen uitvoer van gebruikersbeheer in de cache opgeslagen, ongeacht de @OutputCache-instructie of het cacheprofiel dat wordt gebruikt. Zie voor meer informatie OutputCacheSettingsSection en OutputCacheProfile.

Van toepassing op

Zie ook