C# Class ExampleApp.LoadingOfConfigurationByAllowingAppToDetermineConfigPath

Afficher le fichier Open project: twistedtwig/CustomConfigurations Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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
public LoadingOfConfigurationByAllowingAppToDetermineConfigPath ( ) : System
Résultat System