SqlCacheDependencyDatabaseCollection クラス
アセンブリ: System.Web (system.web.dll 内)
構文Public NotInheritable Class SqlCacheDependencyDatabaseCollection Inherits ConfigurationElementCollection
解説SqlCacheDependencySection は SqlCacheDependencyDatabaseCollection を使用して、cache 構成セクションの sqlCacheDependency の databases 要素にプログラムからアクセスして変更できます。
使用例構成ファイルの sqlCacheDependency セクションにアクセスして SqlCacheDependencyDatabaseCollection オブジェクトを取得する方法を次のコード例に示します。
' Get the Web application configuration. Dim webConfig As System.Configuration.Configuration = _ WebConfigurationManager.OpenWebConfiguration("/aspnetTest") ' Get the section. Dim configPath As String = "system.web/sqlCacheDependency" Dim sqlCacheDependencySection As SqlCacheDependencySection = _ CType(webConfig.GetSection(configPath), SqlCacheDependencySection) ' Get the database element at the specified index. Dim sqlCdds _ As SqlCacheDependencyDatabaseCollection = _ sqlCacheDependencySection.Databases
// Get the Web application configuration. Configuration webConfig = WebConfigurationManager.OpenWebConfiguration("/aspnetTest"); // Get the section. string configPath = "system.web/cache/sqlCacheDependency"; SqlCacheDependencySection sqlCacheDependencySection = (SqlCacheDependencySection)webConfig.GetSection(configPath); // Get the database element at the specified index. SqlCacheDependencyDatabaseCollection sqlCdds = sqlCacheDependencySection.Databases;
継承階層System.Configuration.ConfigurationElement
System.Configuration.ConfigurationElementCollection
System.Web.Configuration.SqlCacheDependencyDatabaseCollection
スレッド セーフ
プラットフォームWindows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照SqlCacheDependencyDatabaseCollection メンバ
System.Web.Configuration 名前空間
SqlCacheDependencySection
SqlCacheDependencyDatabase クラス
SqlCacheDependency クラス
その他の技術情報
ASP.NET アプリケーションの構成
caching の sqlCacheDependency の databases 要素 (ASP.NET 設定スキーマ)
caching の sqlCacheDependency 要素 (ASP.NET 設定スキーマ)
caching の cache 要素 (ASP.NET 設定スキーマ)
ASP.NET キャッシュ
Weblioに収録されているすべての辞書からSqlCacheDependencyDatabaseCollection クラスを検索する場合は、下記のリンクをクリックしてください。
全ての辞書からSqlCacheDependencyDatabaseCollection クラス
を検索
- SqlCacheDependencyDatabaseCollection クラスのページへのリンク