ConfigurationValueReader.ReadSection Method (String, IConfigurationSectionHandler)

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2013, Dynamics CRM 2015, Dynamics CRM 2016

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)

Syntax

public object ReadSection(
    string sectionName,
    IConfigurationSectionHandler configSectionHandler
)
Public Function ReadSection (
    sectionName As String,
    configSectionHandler As IConfigurationSectionHandler
) As Object

Parameters

  • sectionName
    Type: System.String

    Specifies the name of the section to attempt to read.

Return Value

Type: System.Object

Type: Object

Exceptions

Exception Condition
ConfigurationErrorsException

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

See Also

ConfigurationValueReader Class
Microsoft.Uii.Common Namespace

Return to top

Unified Service Desk 2.0

© 2017 Microsoft. All rights reserved. Copyright