2017-03-09 63 views

回答

0

試試這個

ConfigurationFileMap fileMap = new ConfigurationFileMap("~/Root/Sub1/Web.config"); //Path to your config file 
    Configuration configuration = ConfigurationManager.OpenMappedMachineConfiguration(fileMap); 
    string value = configuration.AppSettings.Settings["sKey"].Value; 
+0

謝謝.. @Mahendra Singh Dhami –

相關問題