app.config
System.Configuration.ConfigurationManager.OpenExeConfiguration(configPath);
AppSettingsSection appSetting = (AppSettingsSection)config.GetSection("appSettings");
ConnectionStringsSection connectionSetting = (ConnectionStringsSection)config.GetSection("connectionStrings");
web.config
System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration(configPath);

1万+

被折叠的 条评论
为什么被折叠?



