ConfigurationValueReader.ReadSection Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Reads from a specific section of the config file or the configuration web service.
public:
System::Object ^ ReadSection(System::String ^ sectionName, System::Configuration::IConfigurationSectionHandler ^ configSectionHandler);
public object ReadSection (string sectionName, System.Configuration.IConfigurationSectionHandler configSectionHandler);
member this.ReadSection : string * System.Configuration.IConfigurationSectionHandler -> obj
Public Function ReadSection (sectionName As String, configSectionHandler As IConfigurationSectionHandler) As Object
Parameters
- sectionName
- String
Specifies the name of the section to attempt to read.
- configSectionHandler
- IConfigurationSectionHandler
Specifies the configuration section handler object
Returns
Exceptions
Thrown when no configuration is found from either the config file or the web service.