Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Specifies output cache settings for an ASP.NET application.
class OutputCacheSection : ConfigurationSection
The following table lists the methods exposed by the OutputCacheSection class.
Name |
Description |
---|---|
(Inherited from ConfigurationSection.) |
|
(Inherited from ConfigurationSection.) |
|
(Inherited from ConfigurationSection.) |
|
(Inherited from ConfigurationSection.) |
|
(Inherited from ConfigurationSection.) |
The following table lists the properties exposed by the OutputCacheSection class.
Name |
Description |
---|---|
EnableFragmentCache |
A read/write boolean value. true if the application fragment cache is enabled; otherwise, false. The default is true. If the fragment cache is disabled, no pages are cached, regardless of the @ OutputCache directive or caching profile used. |
EnableKernelCacheForVaryByStar |
A read/write boolean value. true if kernel caching is enabled for the application when "Vary: *" headers are included in cached pages; otherwise, false. The default is false. |
EnableOutputCache |
A read/write boolean value. true if the page output cache is enabled; otherwise, false. The default is true. If the output cache is disabled, no pages are cached, regardless of any programmatic or declarative settings. |
Location |
(Inherited from ConfigurationSection.) A key property. |
OmitVaryStar |
An optional read/write boolean value. true if an HTTP "Vary: *" header is omitted in the response; otherwise, false. The default is false, which sends a "Vary: *" header for output cached pages. The Vary header indicates the request-header fields that the server uses to determine which of multiple cached responses are sent in response to a client request. |
Path |
(Inherited from ConfigurationSection.) A key property. |
SectionInformation |
(Inherited from ConfigurationSection.) |
SendCacheControlHeader |
An optional read/write boolean value. true if the Cache-Control: private header is sent by the output cache module by default; otherwise, false. The default is true. |
This class contains no subclasses.
OutputCacheSection
Type |
Description |
---|---|
Client |
Requires IIS 7 on Windows Vista. |
Server |
Requires IIS 7 on Windows Server 2008. |
Product |
IIS 7 |
MOF file |
WebAdministration.mof |
CacheSection Class [IIS 7 and higher]
CachingProfileElement Class [IIS 7 and higher]
CachingSection Class [IIS 7 and higher]
ConfigurationSection Class [IIS 7 and higher]
OutputCacheSection
SystemWebCachingSectionGroupOutputCache()()()()