asp.net 读取配置文件方法

hao_guo_wei 11 0 PDF 2021-01-03 15:01:44

方法1: 代码如下: System.Collections.Specialized.NameValueCollection nvc = (System.Collections.Specialized.NameValueCollection) System.Configuration.ConfigurationManager.GetSection(sectionName); string keyValue = nvc.GetValues(keyName)[0].ToString(); 方法2: 代码如下:System.Web.Configuration.WebConfigurationMa

用户评论
请输入评论内容
评分:
暂无评论