ConfigurationValueReader.ReadSection Method

Reads from a specific section of the config file or the configuration web service.

Namespace: Microsoft.Uii.Common
Assembly: Microsoft.Uii.Common.Configuration (in Microsoft.Uii.Common.Configuration.dll)

Usage

'Usage
Dim instance As ConfigurationValueReader
Dim sectionName As String
Dim configSectionHandler As IConfigurationSectionHandler
Dim returnValue As Object

returnValue = instance.ReadSection(sectionName, configSectionHandler)

Syntax

'Declaration
Public Function ReadSection ( _
    sectionName As String, _
    configSectionHandler As IConfigurationSectionHandler _
) As Object
public Object ReadSection (
    string sectionName,
    IConfigurationSectionHandler configSectionHandler
)
public:
Object^ ReadSection (
    String^ sectionName, 
    IConfigurationSectionHandler^ configSectionHandler
)
public Object ReadSection (
    String sectionName, 
    IConfigurationSectionHandler configSectionHandler
)
public function ReadSection (
    sectionName : String, 
    configSectionHandler : IConfigurationSectionHandler
) : Object

Parameters

  • sectionName
    Specifies the name of the section to attempt to read.
  • configSectionHandler
    Specifies the configuration section handler object

Return Value

Type: Object

Exceptions

Exception type Condition
ConfigurationErrorsException

Thrown when no configuration is found from either the config file or the web service.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

See Also

Reference

ConfigurationValueReader Class
ConfigurationValueReader Members
Microsoft.Uii.Common Namespace

Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.