Export (0) Print
Expand All

SectionInformation.SectionName Property

Gets the name of the associated configuration section.

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

public string SectionName { get; }

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.

static public void GetSectionName()
    SectionInformation sInfo =

    string sectionName = sInfo.SectionName;
    Console.WriteLine("Section type: {0}", sectionName);


.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft