SectionInformation.Name 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 Name { get; 
/** @property */
public String get_Name ()

public function get Name () : String

Property Value

The complete name of the ConfigurationSection.

The Name property value is the complete section name, which includes 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 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: