System.Web.Configuration.OutputCacheSettingsSection Class

Configures the output cache settings for application pages . This class cannot be inherited.

See Also: OutputCacheSettingsSection Members


public sealed class OutputCacheSettingsSection : System.Configuration.ConfigurationSection


The System.Web.Configuration.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 System.Web.Caching.CacheDependency objects) that are used in output caching, for instance, by the @ OutputCache directive or by the System.Web.Configuration.OutputCacheProfile.


The System.Web.Configuration.OutputCacheSettingsSection can write information into the related section of the configuration file according to the restrictions defined by the section property System.Configuration.SectionInformation.AllowDefinition whose value is System.Configuration.ConfigurationAllowDefinition.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.


Namespace: System.Web.Configuration
Assembly: System.Web (in System.Web.dll)
Assembly Versions:
Since: .NET 2.0