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


SystemWebCachingSectionGroup クラスを使用すると、構成ファイルの caching セクションにプログラムからアクセスして変更できます。
SystemWebCachingSectionGroup クラスと caching セクションを使用すると、サイトまたはアプリケーションで使用するキャッシュ機構を集中管理できます。これにより、アプリケーションの各ページを個別に変更せずに、キャッシュ処理の配置、変更、および無効化を行うことができます。
ASP.NET キャッシュ機構は Cache クラスによって実装されます。詳細については、「ASP.NET のキャッシュの概要」を参照してください。

既存の Web アプリケーションに関連付けられている構成ファイルから SystemWebCachingSectionGroup オブジェクトを取得する方法を次のコード例に示します。このオブジェクトを使用して、caching グループに格納されているセクションにアクセスできます。
' Get the Web application configuration. Dim configuration _ As System.Configuration.Configuration = _ WebConfigurationManager.OpenWebConfiguration( _ "/aspnetTest") ' Get the <caching> section group. Dim cachingSectionGroup _ As SystemWebCachingSectionGroup = _ CType(configuration.GetSectionGroup( _ "system.web/caching"), SystemWebCachingSectionGroup)
// Get the Web application configuration. System.Configuration.Configuration configuration = WebConfigurationManager.OpenWebConfiguration( "/aspnetTest"); // Get the <caching> section group. SystemWebCachingSectionGroup cachingSectionGroup = (SystemWebCachingSectionGroup)configuration.GetSectionGroup( "system.web/caching");

System.Configuration.ConfigurationSectionGroup
System.Web.Configuration.SystemWebCachingSectionGroup


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


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