This documentation is archived and is not being maintained.

SectionInformation.Name Property

Gets the name of the associated configuration section.

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

public string Name { get; }
/** @property */
public String get_Name ()

public function get Name () : String

Not applicable.

Property Value

The complete name of the configuration section.

The Name is the name of the section without the path.

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

static public void GetSectionNameProperty()
{
    SectionInformation sInfo =
        GetSectionInformation();

    string sectionNameProperty = sInfo.Name;
    Console.WriteLine("Section name: {0}", 
        sectionNameProperty);

}

Windows 98, Windows Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Show: