AccessDataSource.SqlCacheDependency Property


The SqlCacheDependency property overrides the SqlCacheDependency property.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public override string SqlCacheDependency { get; set; }

Property Value

Type: System.String

Throws a NotSupportedException, in all cases.

Exception Condition

An attempt was made to get or set the SqlCacheDependency property.

In the base class, SqlDataSource, the SqlCacheDependency property gets or sets a semicolon-delimited string that indicates which databases and tables to use for the Microsoft SQL Server cache dependency. Cache dependency is not supported by Microsoft Access, and any access to the SqlCacheDependency property results in a NotSupportedException exception.

.NET Framework
Available since 2.0
Return to top