以编程方式配置Web.config中的caching.database节点

// Get the Web application configuration.
System.Configuration.Configuration webConfig =
WebConfigurationManager.OpenWebConfiguration("~/");


// Get the section.

System.Web.Configuration.SqlCacheDependencySection sqlDs =
(System.Web.Configuration.SqlCacheDependencySection)webConfig.GetSection(
"system.web/cache/sqlCacheDependency");
posted @ 2008-10-19 22:11  ejiyuan  阅读(346)  评论(0编辑  收藏  举报