SqlCacheDependencySection.Databases Property

 

Gets the collection of SqlCacheDependencyDatabase objects stored within the SqlCacheDependencySection.

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

[ConfigurationPropertyAttribute("databases")]
public SqlCacheDependencyDatabaseCollection Databases { get; }

The Databases property allows you to programmatically access the databases element of the sqlCacheDependency Element for caching (ASP.NET Settings Schema) of the cache section a configuration file.

The following code example shows how to use the Databases property.


// Get the current Databases collection.
SqlCacheDependencyDatabaseCollection databasesValue =
    sqlDs.Databases;

.NET Framework
Available since 2.0
Return to top
Show: