OutputCacheParameters OutputCacheParameters OutputCacheParameters OutputCacheParameters Class

定義

封裝由 ASP.NET 從 @ OutputCache 頁面指示詞剖析的輸出快取初始化設定。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
繼承
OutputCacheParametersOutputCacheParametersOutputCacheParametersOutputCacheParameters

備註

OutputCacheParameters類別不是由 ASP.NET 頁面或控制項開發人員。The OutputCacheParameters class is not used by ASP.NET page or control developers. 它提供用來儲存快取的設定,從剖析的資料結構@ OutputCache頁 ASP.NET 頁面指示詞,以及控制剖析器,例如PageParserTemplateControlParserIt 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. OutputCacheParameters物件搭配Page.InitOutputCache方法,以在執行階段初始化頁面和其內容的輸出快取。The OutputCacheParameters object is used with the Page.InitOutputCache method to initialize the output cache for a page and its contents at run time.

建構函式

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

初始化 OutputCacheParameters 類別的新執行個體。Initializes a new instance of the OutputCacheParameters class.

屬性

CacheProfile CacheProfile CacheProfile CacheProfile

取得或設定與輸出快取項目設定關聯的 OutputCacheProfile 名稱。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

取得或設定數值,判斷是否已設定 HTTP Cache-Control: no-store 指示詞。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

取得或設定一組以逗號分隔的字元集 (Character Set) (內容編碼) 名稱,用來變更快取項目。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. 標頭名稱會識別與要求關聯的 HTTP 標頭。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.

方法

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

取得目前執行個體的 TypeGets the Type of the current instance.

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

建立目前 Object 的淺層複製。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)

適用於

另請參閱