This topic has not yet been rated - Rate this topic

OutputCacheParameters Class

Encapsulates the output cache initialization settings parsed from an @ OutputCache page directive by ASP.NET. This class cannot be inherited.

System.Object
  System.Web.UI.OutputCacheParameters

Namespace:  System.Web.UI
Assembly:  System.Web (in System.Web.dll)
public sealed class OutputCacheParameters

The OutputCacheParameters type exposes the following members.

  Name Description
Public method OutputCacheParameters Initializes a new instance of the OutputCacheParameters class.
Top
  Name Description
Public property CacheProfile Gets or sets an OutputCacheProfile name that is associated with the settings of the output cache entry.
Public property Duration Gets or sets the amount of time that a cache entry is to remain in the output cache.
Public property Enabled Gets or sets a value indicating whether output caching is enabled for the current content.
Public property Location Gets or sets a value that determines the location of the cache entry.
Public property NoStore Gets or sets a value that determines whether the HTTP Cache-Control: no-store directive is set.
Public property SqlDependency Gets or sets a set of database and table name pairs that the cache entry depends on.
Public property VaryByContentEncoding Gets or sets a comma-delimited set of character sets (content encodings) used to vary the cache entry.
Public property VaryByControl Gets or sets a semicolon-delimited set of control identifiers contained within the current page or user control used to vary the current cache entry.
Public property VaryByCustom Gets a list of custom strings that the output cache uses to vary the cache entry.
Public property VaryByHeader Gets or sets a comma-delimited set of header names used to vary the cache entry. The header names identify HTTP headers associated with the request.
Public property VaryByParam Gets a semicolon-delimited list of query string or form POST parameters that the output cache uses to vary the cache entry.
Top
  Name Description
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

The OutputCacheParameters class is not used by ASP.NET page or control developers. It provides a data structure used to store cache settings parsed from an @ OutputCache page directive by ASP.NET page and control parsers such as PageParser and TemplateControlParser. The OutputCacheParameters object is used with the PageInitOutputCache(OutputCacheSettings) method to initialize the output cache for a page and its contents at run time.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ