System.Web.Configuration.SqlCacheDependencySection.Enabled Property

Gets or sets a value indicating whether the database table should be monitored for changes.

Syntax

[System.Configuration.ConfigurationProperty("enabled", DefaultValue="True")]
public bool Enabled { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

After you configure the relationship between an item stored in an ASP.NET application's cache and a specific SQL Server database table, an instance of the System.Web.Caching.SqlCacheDependency class monitors the table so that when an item in the table changes the item is automatically removed from the cache.

For this class to work correctly, the database and any tables on which you want to set dependencies must have notifications enabled. For more information, see the remarks provided for the System.Web.Caching.SqlCacheDependency class.

Note:

Gets or sets a value indicating whether the database tables that have active System.Web.Caching.SqlCacheDependency objects should be monitored for changes. This setting does not affect the row-level System.Web.Caching.SqlCacheDependency objects.

Requirements

Namespace: System.Web.Configuration
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0