现在的位置: 首页 > 综合 > 正文

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

2011年09月01日 ⁄ 综合 ⁄ 共 315字 ⁄ 字号 评论关闭
// 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");

【上篇】
【下篇】

抱歉!评论已关闭.