SectionInformation.SectionName Property

Note: This property is new in the .NET Framework version 2.0.

Gets the name of the associated configuration section.

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

public string SectionName { get; 
/** @property */
public String get_SectionName ()

public function get SectionName () : String

Property Value

The name of the associated ConfigurationSection object.

The SectionName is just what it says, simply the name of the section, no path involved.

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);



Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: