HttpResponse.Cache プロパティ
アセンブリ: System.Web (system.web.dll 内)


現在のキャッシュ ポリシーのプロパティを 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")) { //... }

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からHttpResponse.Cache プロパティを検索する場合は、下記のリンクをクリックしてください。

- HttpResponse.Cache プロパティのページへのリンク