Share via


MobilePage.InitOutputCache 方法

定義

為目前網頁要求初始化輸出快取。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

多載

InitOutputCache(Int32, String, String, OutputCacheLocation, String)

為目前網頁要求初始化輸出快取。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

InitOutputCache(Int32, String, String, String, OutputCacheLocation, String)

為目前網頁要求初始化輸出快取。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

備註

InitOutputCache.NET Framework 3.5 版引進。 如需詳細資訊,請參閱版本和相依性

InitOutputCache(Int32, String, String, OutputCacheLocation, String)

為目前網頁要求初始化輸出快取。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

protected:
 override void InitOutputCache(int duration, System::String ^ varyByHeader, System::String ^ varyByCustom, System::Web::UI::OutputCacheLocation location, System::String ^ varyByParam);
protected override void InitOutputCache (int duration, string varyByHeader, string varyByCustom, System.Web.UI.OutputCacheLocation location, string varyByParam);
override this.InitOutputCache : int * string * string * System.Web.UI.OutputCacheLocation * string -> unit
Protected Overrides Sub InitOutputCache (duration As Integer, varyByHeader As String, varyByCustom As String, location As OutputCacheLocation, varyByParam As String)

參數

duration
Int32

儲存在輸出快取中的物件是有效的經過時間量。

varyByHeader
String

以分號分隔的標頭清單,輸出快取內容會因這個清單而有所不同。

varyByCustom
String

Vary HTTP 標頭。

location
OutputCacheLocation

其中一個 OutputCacheLocation 值。

varyByParam
String

以分號分隔的參數清單,由 GET 或 POST 方法接收,輸出快取內容會因這個清單而有所不同。

備註

此成員會 Page.InitOutputCache 覆寫 方法,以新增更多 VaryByHeader 關鍵詞,為不同的標記裝置提供正確的頁面輸出快取。

另請參閱

適用於

InitOutputCache(Int32, String, String, String, OutputCacheLocation, String)

為目前網頁要求初始化輸出快取。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

protected:
 override void InitOutputCache(int duration, System::String ^ varyByContentEncoding, System::String ^ varyByHeader, System::String ^ varyByCustom, System::Web::UI::OutputCacheLocation location, System::String ^ varyByParam);
protected override void InitOutputCache (int duration, string varyByContentEncoding, string varyByHeader, string varyByCustom, System.Web.UI.OutputCacheLocation location, string varyByParam);
override this.InitOutputCache : int * string * string * string * System.Web.UI.OutputCacheLocation * string -> unit
Protected Overrides Sub InitOutputCache (duration As Integer, varyByContentEncoding As String, varyByHeader As String, varyByCustom As String, location As OutputCacheLocation, varyByParam As String)

參數

duration
Int32

儲存在輸出快取中的物件是有效的經過時間量。

varyByContentEncoding
String

以分號分隔的字元集 (內容編碼) 清單,輸出快取內容會因這個清單而有所不同。

varyByHeader
String

以分號分隔的標頭清單,輸出快取內容會因這個清單而有所不同。

varyByCustom
String

Vary HTTP 標頭。

location
OutputCacheLocation

其中一個 OutputCacheLocation 值。

varyByParam
String

以分號分隔的參數清單,由 GET 或 POST 方法接收,輸出快取內容會因這個清單而有所不同。

備註

此成員會 Page.InitOutputCache 覆寫 方法,以新增更多 VaryByHeader 關鍵詞,為不同的標記裝置提供正確的頁面輸出快取。

另請參閱

適用於