OutputCacheParameters OutputCacheParameters OutputCacheParameters OutputCacheParameters Class

Definition

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

public ref class OutputCacheParameters sealed
public sealed class OutputCacheParameters
type OutputCacheParameters = class
Public NotInheritable Class OutputCacheParameters
Inheritance
OutputCacheParametersOutputCacheParametersOutputCacheParametersOutputCacheParameters

Remarks

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.

Constructors

OutputCacheParameters() OutputCacheParameters() OutputCacheParameters() OutputCacheParameters()

Initializes a new instance of the OutputCacheParameters class.

Properties

CacheProfile CacheProfile CacheProfile CacheProfile

Gets or sets an OutputCacheProfile name that is associated with the settings of the output cache entry.

Duration Duration Duration Duration

Gets or sets the amount of time that a cache entry is to remain in the output cache.

Enabled Enabled Enabled Enabled

Gets or sets a value indicating whether output caching is enabled for the current content.

Location Location Location Location

Gets or sets a value that determines the location of the cache entry.

NoStore NoStore NoStore NoStore

Gets or sets a value that determines whether the HTTP Cache-Control: no-store directive is set.

SqlDependency SqlDependency SqlDependency SqlDependency

Gets or sets a set of database and table name pairs that the cache entry depends on.

VaryByContentEncoding VaryByContentEncoding VaryByContentEncoding VaryByContentEncoding

Gets or sets a comma-delimited set of character sets (content encodings) used to vary the cache entry.

VaryByControl VaryByControl VaryByControl 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.

VaryByCustom VaryByCustom VaryByCustom VaryByCustom

Gets a list of custom strings that the output cache uses to vary the cache entry.

VaryByHeader VaryByHeader VaryByHeader 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.

VaryByParam VaryByParam VaryByParam VaryByParam

Gets a semicolon-delimited list of query string or form POST parameters that the output cache uses to vary the cache entry.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also