OutputCacheSettingsSection.OutputCacheProfiles プロパティ
アセンブリ: System.Web (system.web.dll 内)
構文Dim instance As OutputCacheSettingsSection Dim value As OutputCacheProfileCollection value = instance.OutputCacheProfiles
public: property OutputCacheProfileCollection^ OutputCacheProfiles { OutputCacheProfileCollection^ get (); }
OutputCacheProfile オブジェクトの OutputCacheProfileCollection。
解説OutputCacheProfiles プロパティを使用すると、構成ファイル内の outputCacheProfiles 要素にプログラムからアクセスできます。OutputCacheProfiles プロパティを使用して outputCacheProfiles 要素をプログラムから変更できます。
outputCacheProfiles セクションには、アプリケーション内のページが使用可能な出力キャッシュ設定を表す OutputCacheProfile オブジェクトが格納されます。これらの設定を、@ OutputCache ディレクティブの CacheProfile 属性を設定することによりページに適用できます。依存関係、キャッシュの場所、キャッシュの有効期限などのキャッシュ属性を制御するプロファイルを適用します。
@ OutputCache ディレクティブは、OutputCacheProfile に格納されている、Enabled プロパティ以外のすべての設定をオーバーライドできます。これにより、このオブジェクトをオーバーライドしている可能性のあるすべてのページ内のディレクティブを変更することなく、OutputCacheProfile を有効にしたり無効にしたりできます。
使用例
プラットフォーム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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照- OutputCacheSettingsSection.OutputCacheProfiles プロパティのページへのリンク