App.config and ConfigurationManager

If I call the OpenMappedExeConfiguration () method and set the configuration file (filemap) as a parameter, does this mean that the ConfigurationManager will use the new specified configuration file from now on and ignore app.config?

I know that ConfigurationManager is looking for app.config by default, but since the OpenMappedExeConfiguration () method returns a Configuration object, it's almost as if the returned instance was the only one applicable to the specified configuration file, but I'm not 100% sure.

+3
source share
2 answers

, Configuration, .

+2

open AppDomain.CurrentDomain.SetupInformation.ConfigurationFile ,

0

Source: https://habr.com/ru/post/1703810/


All Articles