SectionInformation.SectionName Property

 

Gets the name of the associated configuration section.

Namespace:   System.Configuration
Assembly:  System.Configuration (in System.Configuration.dll)

Public ReadOnly Property SectionName As String

Property Value

Type: System.String

The name of the associated ConfigurationSection object.

The SectionName property value is the complete section name, which includes the configuration inheritance hierarchy.

The following example shows how to get the SectionName value of a ConfigurationSection object.

Public Shared Sub GetSectionName() 
    Dim sInfo As SectionInformation = _
    GetSectionInformation()

    Dim sectionName As String = _
    sInfo.SectionName
    Console.WriteLine("Section type: {0}", _
    sectionName)
End Sub 'GetSectionName

.NET Framework
Available since 2.0
Return to top
Show: