SystemWebCachingSectionGroup::SqlCacheDependency Property
Gets the sqlCacheDependency section contained within the configuration.
Assembly: System.Web (in System.Web.dll)
[ConfigurationPropertyAttribute(L"sqlCacheDependency")] public: property SqlCacheDependencySection^ SqlCacheDependency { SqlCacheDependencySection^ get (); }
Property Value
Type: System.Web.Configuration::SqlCacheDependencySectionThe SqlCacheDependencySection object.
The SqlCacheDependencySection object refers to the sqlCacheDependency section of the configuration file.
The SQL cache dependency establishes a relationship between an item stored in an ASP.NET application's cache and a specific SQL Server database table. An instance of the SqlCacheDependency class must monitor the table so that when the table changes the item will be automatically removed from the cache.
The following code example shows how to obtain the SqlCacheDependencySection object from the configuration file of an existing Web application.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.