ConfigurationSectionGroup.Type Property

Gets or sets the type for this ConfigurationSectionGroup object.

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)

Not applicable.

Property Value

The type of this ConfigurationSectionGroup object.

Exception typeCondition

InvalidOperationException

The ConfigurationSectionGroup object is the root section group.

- or -

The ConfigurationSectionGroup object has a location.

ConfigurationErrorsException

The section or group is already defined at another level.

If this instance of the ConfigurationSectionGroup class is a derived type, the Type property will return the name of the derived type that extends the ConfigurationSectionGroup class.

The following code example shows how to use the Type property.

Console.WriteLine(getSpacer() + 
    "Type: " + sectionGroup.Type);

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

Community Additions

ADD
Show: