Export (0) Print
Expand All
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.

  NameDescription
Public methodOutputCacheParametersInitializes a new instance of the OutputCacheParameters class.
Top
  NameDescription
Public propertyCacheProfileGets or sets an OutputCacheProfile name that is associated with the settings of the output cache entry.
Public propertyDurationGets or sets the amount of time that a cache entry is to remain in the output cache.
Public propertyEnabledGets or sets a value indicating whether output caching is enabled for the current content.
Public propertyLocationGets or sets a value that determines the location of the cache entry.
Public propertyNoStoreGets or sets a value that determines whether the HTTP Cache-Control: no-store directive is set.
Public propertySqlDependencyGets or sets a set of database and table name pairs that the cache entry depends on.
Public propertyVaryByContentEncodingGets or sets a comma-delimited set of character sets (content encodings) used to vary the cache entry.
Public propertyVaryByControlGets 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 propertyVaryByCustomGets a list of custom strings that the output cache uses to vary the cache entry.
Public propertyVaryByHeaderGets 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 propertyVaryByParamGets a semicolon-delimited list of query string or form POST parameters that the output cache uses to vary the cache entry.
Top
  NameDescription
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodToStringReturns 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 Page.InitOutputCache method to initialize the output cache for a page and its contents at run time.

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0, 2.0

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.