MobilePage.InitOutputCache 方法

定义

初始化当前页请求的输出缓存。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

重载

名称 说明
InitOutputCache(Int32, String, String, OutputCacheLocation, String)

初始化当前页请求的输出缓存。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

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

初始化当前页请求的输出缓存。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

注解

.NET Framework 版本 3.5 中引入了 InitOutputCache。 有关详细信息,请参阅 版本和依赖项

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

初始化当前页请求的输出缓存。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 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 &具有 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 关键字的方法,以便为不同的标记设备提供正确的页面输出缓存。

另请参阅

适用于