C# 클래스 ExampleApp.LoadingOfConfigurationByAllowingAppToDetermineConfigPath

파일 보기 프로젝트 열기: twistedtwig/CustomConfigurations 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

LoadingOfConfigurationByAllowingAppToDetermineConfigPath() 공개 메소드

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