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 ReadOnly Property Databases As SqlCacheDependencyDatabaseCollection

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.
  Dim databasesValue _
  As SqlCacheDependencyDatabaseCollection = _
  sqlDs.Databases

.NET Framework
Available since 2.0
Return to top
Show: