SystemWebCachingSectionGroup.SqlCacheDependency Property
.NET Framework (current version)
Gets the sqlCacheDependency section contained within the configuration.
Assembly: System.Web (in System.Web.dll)
[<ConfigurationPropertyAttribute("sqlCacheDependency")>] member SqlCacheDependency : SqlCacheDependencySection with 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.
.NET Framework
Available since 2.0
Available since 2.0
Show: