ConfigurationSectionGroup.Type Property

Definition

Gets or sets the type for this ConfigurationSectionGroup object.

public string Type { get; set; }

Property Value

The type of this ConfigurationSectionGroup object.

Exceptions

The ConfigurationSectionGroup object is the root section group.

-or-

The ConfigurationSectionGroup object has a location.

The section or group is already defined at another level.

Examples

The following code example shows how to use the Type property. This is part of a larger example provided in the overview for the ConfigurationSectionGroup class.

indent("Type: " + sectionGroup.Type);

Remarks

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.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

See also