OutputCacheSettingsSection Class
Assembly: System.Web (in system.web.dll)
The OutputCacheSettingsSection class allows you to programmatically access and modify the outputCacheSettings element of the caching section in a configuration file. The output cache settings define the dependencies (the relationships between items stored in the cache and files, cache keys, or CacheDependency objects) that are used in output caching, for instance, by the @ OutputCache directive or by the OutputCacheProfile.
Note: |
|---|
|
The OutputCacheSettingsSection can write information into the related section of the configuration file according to the restrictions defined by the section property AllowDefinition whose value is MachineToApplication. Any attempt to write in a configuration file at a level not allowed in the hierarchy will result in an error message generated by the parser. However, you can use this class to read configuration information at any level in the hierarchy. |
System.Configuration.ConfigurationElement
System.Configuration.ConfigurationSection
System.Web.Configuration.OutputCacheSettingsSection
Reference
OutputCacheSettingsSection MembersSystem.Web.Configuration Namespace
OutputCacheSection
OutputCacheProfile
CacheDependency
Other Resources
outputCacheSettings Element for caching (ASP.NET Settings Schema)caching Element (ASP.NET Settings Schema)
Caching Application Data
Setting the Cacheability of a Page
@ OutputCache
Note: