MobilePage.InitOutputCache メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
現在のページ要求の出力キャッシュを初期化します。 この API は廃止されています。 ASP.NET モバイル アプリケーションの開発方法については、「
オーバーロード
| 名前 | 説明 |
|---|---|
| InitOutputCache(Int32, String, String, OutputCacheLocation, String) |
現在のページ要求の出力キャッシュを初期化します。 この API は廃止されています。 ASP.NET モバイル アプリケーションの開発方法については、「 |
| InitOutputCache(Int32, String, String, String, OutputCacheLocation, String) |
現在のページ要求の出力キャッシュを初期化します。 この API は廃止されています。 ASP.NET モバイル アプリケーションの開発方法については、「 |
注釈
InitOutputCache は、.NET Framework バージョン 3.5 で導入されています。 詳細については、「 バージョンと依存関係」を参照してください。
InitOutputCache(Int32, String, String, OutputCacheLocation, String)
現在のページ要求の出力キャッシュを初期化します。 この API は廃止されています。 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値の 1 つ。
- varyByParam
- String
GET メソッドまたは POST メソッドによって受け取られるパラメーターのセミコロン区切りのリスト。出力キャッシュの内容は異なります。
注釈
このメンバーは、 Page.InitOutputCache メソッドをオーバーライドして、 VaryByHeader キーワードを追加して、さまざまなマークアップ デバイスに対してページ出力の正しいキャッシュを提供します。
こちらもご覧ください
適用対象
InitOutputCache(Int32, String, String, String, OutputCacheLocation, String)
現在のページ要求の出力キャッシュを初期化します。 この API は廃止されています。 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値の 1 つ。
- varyByParam
- String
GET メソッドまたは POST メソッドによって受け取られるパラメーターのセミコロン区切りのリスト。出力キャッシュの内容は異なります。
注釈
このメンバーは、 Page.InitOutputCache メソッドをオーバーライドして、 VaryByHeader キーワードを追加して、さまざまなマークアップ デバイスに対してページ出力の正しいキャッシュを提供します。