HttpResponse.Cache プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > HttpResponse.Cache プロパティの意味・解説 

HttpResponse.Cache プロパティ

Web ページキャッシュ ポリシー (expiration time 句、privacy 句、vary 句) を取得します

名前空間: System.Web
アセンブリ: System.Web (system.web.dll 内)
構文構文

Dim instance As HttpResponse
Dim value As HttpCachePolicy

value = instance.Cache
public HttpCachePolicy Cache { get; }
public:
property HttpCachePolicy^ Cache {
    HttpCachePolicy^ get ();
}
/** @property */
public HttpCachePolicy get_Cache ()
public function get Cache
 () : HttpCachePolicy

プロパティ
現在の応答キャッシュ ポリシーに関する情報格納する HttpCachePolicy オブジェクト

使用例使用例

現在のキャッシュ ポリシープロパティHTTP 出力ストリーム書き込む例を次に示します

Response.Cache.SetExpires(DateTime.Now.AddSeconds(60))
Response.Cache.SetCacheability(HttpCacheability.Public)
Response.Cache.SetValidUntilExpires(False)
Response.Cache.VaryByParams("Category") = True

If Response.Cache.VaryByParams("Category")
 Then
   '...
End If
 
Response.Cache.SetExpires(DateTime.Now.AddSeconds(60));
Response.Cache.SetCacheability(HttpCacheability.Public);
Response.Cache.SetValidUntilExpires(false);
Response.Cache.VaryByParams["Category"] = true;

if (Response.Cache.VaryByParams["Category"])
{
   //...
}
get_Response().get_Cache().SetExpires(DateTime.get_Now().
    AddSeconds(60));
get_Response().get_Cache().SetCacheability(HttpCacheability.Public);
get_Response().get_Cache().SetValidUntilExpires(false);
get_Response().get_Cache().get_VaryByParams().
    set_Item("Category", true);

if (get_Response().get_Cache().get_VaryByParams().
    get_Item("Category")) {
    //...
}
Response.Cache.SetExpires(DateTime.Now.AddSeconds(60))
Response.Cache.SetCacheability(HttpCacheability.Public)
Response.Cache.SetValidUntilExpires(false)
Response.Cache.VaryByParams("Category") = true

if(Response.Cache.VaryByParams("Category")){
   //...
}
 
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からHttpResponse.Cache プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からHttpResponse.Cache プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からHttpResponse.Cache プロパティ を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

HttpResponse.Cache プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



HttpResponse.Cache プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS