C# Class ExampleApp.LoadingOfConfigurationByAllowingAppToDetermineConfigPath

Mostra file Open project: twistedtwig/CustomConfigurations Class Usage Examples

Public Methods

Method Description
LoadingOfConfigurationByAllowingAppToDetermineConfigPath ( ) : System

The loading of the config object did not specify a config path so the application determined the first valid path it could find. below is the configSections segment of the app config file. It chooses to use "testsection2" becuase it appears first in the list. If this had been declared after the sectiongroup element or not at all then it would have choosen the section group "myCustomGroup". configSections section name="testsection2" type="CustomConfigurations.ConfigurationSectionLoader, CustomConfigurations" sectionGroup name="myCustomGroup"> section name="mysection" type="CustomConfigurations.ConfigurationSectionLoader, CustomConfigurations" sectionGroup configSections

Method Details

LoadingOfConfigurationByAllowingAppToDetermineConfigPath() public method

The loading of the config object did not specify a config path so the application determined the first valid path it could find. below is the configSections segment of the app config file. It chooses to use "testsection2" becuase it appears first in the list. If this had been declared after the sectiongroup element or not at all then it would have choosen the section group "myCustomGroup". configSections section name="testsection2" type="CustomConfigurations.ConfigurationSectionLoader, CustomConfigurations" sectionGroup name="myCustomGroup"> section name="mysection" type="CustomConfigurations.ConfigurationSectionLoader, CustomConfigurations" sectionGroup configSections