MobilePage.InitOutputCache 方法
定义
初始化当前页面请求的输出缓存。Initializes the output cache for the current page request. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.
重载
| InitOutputCache(Int32, String, String, OutputCacheLocation, String) |
初始化当前页面请求的输出缓存。Initializes the output cache for the current page request. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET. |
| InitOutputCache(Int32, String, String, String, OutputCacheLocation, String) |
初始化当前页面请求的输出缓存。Initializes the output cache for the current page request. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET. |
注解
InitOutputCache .NET Framework 版本3.5 中引入。InitOutputCache is introduced in the .NET Framework version 3.5. 有关详细信息,请参见版本和依赖关系。For more information, see Versions and Dependencies.
InitOutputCache(Int32, String, String, OutputCacheLocation, String)
初始化当前页面请求的输出缓存。Initializes the output cache for the current page request. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see 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
对象存储在输出缓存中的时间量是有效的。The amount of time that objects stored in the output cache are valid.
- varyByHeader
- String
以分号分隔的标头列表,来自输出缓存的内容因标头而异。A semicolon-separated list of headers that content from the output cache will vary by.
- varyByCustom
- String
Vary HTTP 标头。The Vary HTTP header.
- location
- OutputCacheLocation
OutputCacheLocation 值之一。One of the OutputCacheLocation values.
- varyByParam
- String
通过 GET 或 POST 方法收到的以分号分隔的参数列表,来自输出缓存的内容因参数而异。A semicolon-separated list of parameters, received by a GET or POST method, that content from the output cache will vary by.
注解
此成员重写 Page.InitOutputCache 方法,以添加更多 VaryByHeader 关键字,以便为不同的标记设备提供正确的页面输出缓存。This member overrides the Page.InitOutputCache method to add more VaryByHeader keywords to provide correct caching of page output for different markup devices.
适用于
InitOutputCache(Int32, String, String, String, OutputCacheLocation, String)
初始化当前页面请求的输出缓存。Initializes the output cache for the current page request. 此 API 已废弃不用。This API is obsolete. 若要了解如何开发 ASP.NET 移动应用,请参阅 Mobile Apps & Sites with ASP.NET (ASP.NET 移动应用和网站)。For information about how to develop ASP.NET mobile applications, see 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
对象存储在输出缓存中的时间量是有效的。The amount of time that objects stored in the output cache are valid.
- varyByContentEncoding
- String
以分号分隔的字符集(内容编码)列表,来自输出缓存中内容因字符集而异。A semicolon-separated list of character-sets (content encodings) that content from the output cache will vary by.
- varyByHeader
- String
以分号分隔的标头列表,来自输出缓存的内容因标头而异。A semicolon-separated list of headers that content from the output cache will vary by.
- varyByCustom
- String
Vary HTTP 标头。The Vary HTTP header.
- location
- OutputCacheLocation
OutputCacheLocation 值之一。One of the OutputCacheLocation values.
- varyByParam
- String
通过 GET 或 POST 方法收到的以分号分隔的参数列表,来自输出缓存的内容因参数而异。A semicolon-separated list of parameters, received by a GET or POST method, that content from the output cache will vary by.
注解
此成员重写 Page.InitOutputCache 方法,以添加更多 VaryByHeader 关键字,以便为不同的标记设备提供正确的页面输出缓存。This member overrides the Page.InitOutputCache method to add more VaryByHeader keywords to provide correct caching of page output for different markup devices.