OutputCacheProfileCollection クラス
アセンブリ: System.Web (system.web.dll 内)


OutputCacheProfileCollection により、ページまたはユーザー コントロールが使用する出力キャッシュ設定を一括管理できます。
このコレクションを使用して、コレクション内に格納される OutputCacheProfile オブジェクトにプログラムからアクセスして変更できます。
![]() |
---|
OutputCacheProfile は、@ OutputCache ディレクティブの CacheProfile 属性を使用してページに適用できます。 |

OutputCacheProfileCollection オブジェクトの取得方法を次のコード例に示します。
' ' Get the Web application configuration. Dim webConfig _ As System.Configuration.Configuration = _ WebConfigurationManager.OpenWebConfiguration( _ "/aspnetTest") ' Get the section. Dim configPath As String = _ "system.web/caching/outputCacheSettings" Dim outputCacheSettings _ As System.Web.Configuration.OutputCacheSettingsSection = _ CType(webConfig.GetSection(configPath), _ System.Web.Configuration.OutputCacheSettingsSection) ' Get the profile collection. Dim outputCacheProfiles _ As System.Web.Configuration.OutputCacheProfileCollection = _ outputCacheSettings.OutputCacheProfiles
// Get the Web application configuration. System.Configuration.Configuration webConfig = WebConfigurationManager.OpenWebConfiguration("/aspnetTest"); // Get the section. string configPath = "system.web/caching/outputCacheSettings"; System.Web.Configuration.OutputCacheSettingsSection outputCacheSettings = (System.Web.Configuration.OutputCacheSettingsSection)webConfig.GetSection( configPath); // Get the profile collection. System.Web.Configuration.OutputCacheProfileCollection outputCacheProfiles = outputCacheSettings.OutputCacheProfiles;

System.Configuration.ConfigurationElement
System.Configuration.ConfigurationElementCollection
System.Web.Configuration.OutputCacheProfileCollection


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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- OutputCacheProfileCollection クラスのページへのリンク