getSection
public static java.lang.Object getSection(java.lang.String appConfigSectionFile)
throws java.io.FileNotFoundException,
ConfigurationErrorsException
Retrieves a specified configuration section file, reads its contents and invokes the specified handler, returning the parsed
configuration. The client of this API needs to know in advance what is expected to be returned, e.g. an array, a concrete object, etc.
This is a limitation to the design of the configuration system of .NET and this class is designed to resemble it as closely as
possible.
- Throws:
java.io.FileNotFoundException
- The specified file was not found
ConfigurationErrorsException
- When configuration errors occur.