SystemWebCachingSectionGroup.OutputCache Property

 

Gets the outputCache section contained within the configuration.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

<ConfigurationPropertyAttribute("outputCache")>
Public ReadOnly Property OutputCache As OutputCacheSection

The OutputCacheSection object refers to the outputCache section of the configuration file.

The following code example shows how to obtain the OutputCacheSection object from the configuration file of an existing Web application.

' Get the .<outputCache> section
Dim outputCache _
As OutputCacheSection = _
cachingSectionGroup.OutputCache

' Display one of its properties.
msg = String.Format( _
"Enable output cache: {0}" + _
ControlChars.Lf, _
outputCache.EnableOutputCache.ToString())

Console.Write(msg)

.NET Framework
Available since 2.0
Return to top
Show: