Sdílet prostřednictvím


OutputCacheSection.EnableFragmentCache Vlastnost

Definice

Získá nebo nastaví hodnotu označující, zda je povolena mezipaměť fragmentů.

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

Hodnota vlastnosti

truepokud je povolená mezipaměť fragmentů; v opačném případě . false Výchozí hodnota je true.

Atributy

Příklady

Následující příklad kódu ukazuje, jak použít EnableFragmentCache vlastnost.


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

Poznámky

Pokud je vlastnost nastavena EnableFragmentCache na false, žádný výstup uživatelského ovládacího prvku není uložen v mezipaměti bez ohledu na direktivu @ OutputCache nebo použitý profil ukládání do mezipaměti. Pro více informací se podívejte na OutputCacheSettingsSection a OutputCacheProfile.

Platí pro

Viz také