Freigeben über


OutputCacheSection.EnableFragmentCache Eigenschaft

Definition

Ruft einen Wert ab, der angibt, ob der Fragmentcache aktiviert ist, oder legt diesen fest.

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

true, wenn der Fragmentcache aktiviert ist, andernfalls false. Der Standardwert ist true.

Attribute

Beispiele

Im folgenden Codebeispiel wird die Verwendung der EnableFragmentCache-Eigenschaft veranschaulicht.


// 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 falsefestgelegt ist, wird keine Ausgabe des Benutzersteuerelements zwischengespeichert, unabhängig von der @ OutputCache-Direktive oder dem verwendeten Zwischenspeicherprofil. Weitere Informationen finden Sie unter OutputCacheSettingsSection und OutputCacheProfile.

Gilt für:

Weitere Informationen