OutputCacheSection.EnableOutputCache Eigenschap
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Hiermee wordt een waarde opgehaald of ingesteld die aangeeft of de uitvoercache is ingeschakeld.
public:
property bool EnableOutputCache { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("enableOutputCache", DefaultValue=true)]
public bool EnableOutputCache { get; set; }
[<System.Configuration.ConfigurationProperty("enableOutputCache", DefaultValue=true)>]
member this.EnableOutputCache : bool with get, set
Public Property EnableOutputCache As Boolean
Waarde van eigenschap
true als de uitvoercache is ingeschakeld; anders, false. De standaardwaarde is true.
- Kenmerken
Voorbeelden
In het volgende codevoorbeeld ziet u hoe u de EnableOutputCache eigenschap gebruikt.
// Get the current EnabledOutputCache.
Boolean enabledOutputCache =
outputCacheSection.EnableOutputCache;
// Set the EnabledOutputCache.
outputCacheSection.EnableOutputCache = false;
' Get the current EnabledOutputCache.
Dim enabledOutputCache As [Boolean] = _
outputCacheSection.EnableOutputCache
' Set the EnabledOutputCache.
outputCacheSection.EnableOutputCache = False
Opmerkingen
Als de EnableFragmentCache eigenschap is ingesteld falseop, wordt er geen pagina in de cache opgeslagen op de server, ongeacht de instellingen in de instructie @OutputCache of het cacheprofiel dat door de pagina wordt gebruikt. Zie voor meer informatie OutputCacheSettingsSection en OutputCacheProfile.