Breyta

Deila með


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
OutputCacheParameters

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()

Initializes a new instance of the OutputCacheParameters class.

Properties

CacheProfile

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

Duration

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

Enabled

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

Location

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

NoStore

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

SqlDependency

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

VaryByContentEncoding

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

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

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

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

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)

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

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also