ASP.NET Custom Configuration Section
Public class fi: system.configuration.namevaluefileesectionhandler {
}
Note that if the direct use: configSections> later version number parameter, etc. It must not be omitted.
Background processing: use system.collections.specialized;
NameValueCollection HA = (NameValueCollection) System.configuration.configurationSttings.getconfig ("xiaos / xiao1"); response.write (ha ["yaya");
.net requires all able to handle configuration section IConfigurationSectionHandler class must implement the interface, the interface is very simple and IConfigurationSectionHandler, only one object Create (object parent, object configContext, XmlNode section) method, which does not need to take the initiative to call, it is ConfigurationSettings . GetConfig This is automatically called when this static method is, that is, when you use configurationSettings.getConfig to get the configuration section in the program, .NET will automatically instantiate the class name and path defined in the changing section declaration. Section processing class and call the CREATE method. But you can overwrite the create method, or you can write, you can call GetConfig directly.