This documentation is archived and is not being maintained.

SystemWebCachingSectionGroup::SqlCacheDependency Property

Gets the sqlCacheDependency section contained within the configuration.

Namespace:  System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

[ConfigurationPropertyAttribute(L"sqlCacheDependency")]
public:
property SqlCacheDependencySection^ SqlCacheDependency {
	SqlCacheDependencySection^ get ();
}

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.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

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.
Show: