MobilePage.InitOutputCache 方法

定义

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

重载

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

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

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

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

注解

InitOutputCache 在 .NET Framework 版本 3.5 中引入。 有关详细信息,请参见版本和依赖关系

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

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

另请参阅

适用于