SectionName Property

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 =
        GetSectionInformation();

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

}

.NET Framework
Available since 2.0
Return to top
Show:
© 2016 Microsoft