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

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

SqlCacheDependencySection オブジェクトは、構成ファイルの sqlCacheDependency セクションを参照します。
SQL キャッシュの依存関係は、ASP.NET アプリケーションに格納されているアイテムと特定の SQL Server データベース テーブルの関係を確立します。SqlCacheDependency クラスのインスタンスはテーブルを監視し、そのテーブルが変更されたときに、キャッシュ アイテムをキャッシュから自動的に削除する必要があります。

既存の Web アプリケーションの構成ファイルから SqlCacheDependencySection オブジェクトを取得する方法を次のコード例に示します。
' Get the .<sqlCacheDependency> section Dim sqlCacheDependency _ As SqlCacheDependencySection = _ cachingSectionGroup.SqlCacheDependency ' Display one of its attributes. msg = String.Format( _ "Sql cache dependency enabled: {0}" + _ ControlChars.Lf, _ sqlCacheDependency.Enabled.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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


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