OutputCacheSection.EnableFragmentCache Własność
Definicja
Ważny
Niektóre informacje dotyczą produktów przedpremierowych, które mogą zostać znacznie zmodyfikowane przed premierą. Microsoft nie udziela żadnych gwarancji, ani wyraźnych, ani domniemanych, dotyczących informacji podanych tutaj.
Pobiera lub ustawia wartość wskazującą, czy pamięć podręczna fragmentów jest włączona.
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
Wartość nieruchomości
true jeśli pamięć podręczna fragmentu jest włączona; w przeciwnym razie , false. Wartość domyślna to true.
- Atrybuty
Przykłady
W poniższym przykładzie kodu pokazano, jak używać EnableFragmentCache właściwości .
// 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
Uwagi
Jeśli właściwość jest ustawiona EnableFragmentCache na falsewartość , żadne dane wyjściowe kontrolki użytkownika nie są buforowane, niezależnie od używanej dyrektywy @ OutputCache lub profilu buforowania. Aby uzyskać więcej informacji, zobacz OutputCacheSettingsSection i OutputCacheProfile.