Freigeben über


OutputCacheSection.EnableFragmentCache Eigenschaft

Definition

Dient zum Abrufen oder Festlegen eines Werts, der angibt, ob der Fragmentcache aktiviert ist.

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

Eigenschaftswert

truewenn der Fragmentcache aktiviert ist; andernfalls . false Der Standardwert lautet true.

Attribute

Beispiele

Das folgende Codebeispiel zeigt, wie die EnableFragmentCache Eigenschaft verwendet wird.


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

Hinweise

Wenn die EnableFragmentCache Eigenschaft auf false festgelegt ist, wird keine Benutzersteuerungsausgabe zwischengespeichert, unabhängig von der @OutputCache-Direktive oder dem verwendeten Zwischenspeicherungsprofil. Weitere Informationen finden Sie unter OutputCacheSettingsSection und OutputCacheProfile.

Gilt für:

Weitere Informationen