Compartir a través de


ConfigurationValueReader.ReadSection Method

Definition

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.

Applies to