Export (0) Print
Expand All

SectionInformation.Type Property

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

Gets or sets the section class name.

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

public string Type { get; set; 
/** @property */
public String get_Type ()

/** @property */
public void set_Type (String value)

public function get Type () : String

public function set Type (value : String)

Property Value

The name of the class associated with this ConfigurationSection section.

The Type property returns the name of the section class that handles this instance of the ConfigurationSection class.

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

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

    string sectionType = sInfo.Type;
    Console.WriteLine("Section type: {0", sectionType);



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:
© 2014 Microsoft