IConfigurationSource.GetSection Method

Retrieves the specified ConfigurationSection.

Namespace: Microsoft.Practices.EnterpriseLibrary.Common.Configuration
Assembly: Microsoft.Practices.EnterpriseLibrary.Common (in Microsoft.Practices.EnterpriseLibrary.Common.dll)

Syntax

'Declaration
Function GetSection ( _
    sectionName As String _
) As ConfigurationSection
ConfigurationSection GetSection(
    string sectionName
)
ConfigurationSection^ GetSection(
    String^ sectionName
)
function GetSection(
    sectionName : String
) : ConfigurationSection

Parameters

  • sectionName
    Type: System.String
    The name of the section to be retrieved.

Return Value

The specified ConfigurationSection, or nulla null reference (Nothing in Visual Basic) (Nothing in Visual Basic) if a section by that name is not found.

See Also

IConfigurationSource Interface

Microsoft.Practices.EnterpriseLibrary.Common.Configuration Namespace