OutputCacheSection.EnableFragmentCache Vlastnost
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
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.