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

Dim instance As SystemWebCachingSectionGroup Dim value As OutputCacheSettingsSection value = instance.OutputCacheSettings
public: property OutputCacheSettingsSection^ OutputCacheSettings { OutputCacheSettingsSection^ get (); }
OutputCacheSettingsSection オブジェクト。

OutputCacheSettingsSection オブジェクトは、構成ファイルの outputCacheSettings セクションを参照します。
出力キャッシュの設定では、ディスク ベースの永続出力キャッシュの有効化または無効化、キャッシュするデータを永続化する場所の定義、およびアプリケーションあたりのキャッシュ サイズの上限の指定を行います。
ASP.NET を使用すると、@ OutputCache ディレクティブの属性を使用し、また HttpCachePolicy クラスのプロパティおよびメソッドをプログラムで使用して、ページの複数のバージョンを宣言によってキャッシュできます。
アプリケーションを OutputCacheSettingsSection 型または OutputCacheProfile 型を使用して構成しても、同じ結果を得られます。

既存の Web アプリケーションの構成ファイルから OutputCacheSettingsSection オブジェクトを取得する方法を次のコード例に示します。
' Get the .<outputCacheSettings> section Dim outputCacheSettings _ As OutputCacheSettingsSection = _ cachingSectionGroup.OutputCacheSettings ' Display the number of existing ' profiles. Dim profilesCount As Integer = _ outputCacheSettings.OutputCacheProfiles.Count msg = String.Format( _ "Number of profiles: {0}" + _ ControlChars.Lf, profilesCount.ToString()) Console.Write(msg)
// Get the .<outputCacheSettings> section OutputCacheSettingsSection outputCacheSettings= cachingSectionGroup.OutputCacheSettings; // Display the number of existing // profiles. int profilesCount = outputCacheSettings.OutputCacheProfiles.Count; msg = String.Format( "Number of profiles: {0}\n", profilesCount.ToString()); Console.Write(msg);

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に収録されているすべての辞書からSystemWebCachingSectionGroup.OutputCacheSettings プロパティを検索する場合は、下記のリンクをクリックしてください。

- SystemWebCachingSectionGroup.OutputCacheSettings プロパティのページへのリンク