SqlCacheDependencySection.Databases 属性

定义

获取 SqlCacheDependencySection 中所存储的 SqlCacheDependencyDatabase 对象的集合。

public:
 property System::Web::Configuration::SqlCacheDependencyDatabaseCollection ^ Databases { System::Web::Configuration::SqlCacheDependencyDatabaseCollection ^ get(); };
[System.Configuration.ConfigurationProperty("databases")]
public System.Web.Configuration.SqlCacheDependencyDatabaseCollection Databases { get; }
[<System.Configuration.ConfigurationProperty("databases")>]
member this.Databases : System.Web.Configuration.SqlCacheDependencyDatabaseCollection
Public ReadOnly Property Databases As SqlCacheDependencyDatabaseCollection

属性值

一个由 SqlCacheDependencyDatabaseCollection 对象构成的 SqlCacheDependencyDatabase

属性

示例

下面的代码示例说明如何使用 Databases 属性。


// Get the current Databases collection.
SqlCacheDependencyDatabaseCollection databasesValue =
    sqlDs.Databases;
' Get the current Databases collection.
  Dim databasesValue _
  As SqlCacheDependencyDatabaseCollection = _
  sqlDs.Databases

注解

属性Databases允许以编程方式访问 sqlCacheDependency 元素的 元素,以缓存配置文件的 节 (ASP.NET Settings 架构) cachedatabases

适用于

另请参阅