<configSections>-Element
Enthält Konfigurationsabschnitts- und Namespacedeklarationen.
<configuration>
** <configSections>**
<configSections>
</configSections>
Untergeordnete Elemente
Element | Beschreibung |
---|---|
<section> | Enthält eine Konfigurationsabschnittsdeklaration. |
<sectionGroup> | Definiert einen Namespace für Konfigurationsabschnitte. |
<remove>-Element für "<configSections>" | Entfernt einen vordefinierten Abschnitt oder eine vordefinierte Abschnittsgruppe. |
<clear>-Element für "<configSections>" | Löscht alle zuvor definierten Abschnitte und Abschnittsgruppen. |
Hinweise
Befindet sich dieses Element in einer Konfigurationsdatei, muss es das erste untergeordnete Element des <configuration>-Elements sein.
Beispiel
Das folgende Beispiel veranschaulicht, wie Sie einen Konfigurationsabschnitt definieren und Einstellungen für diesen Abschnitt festlegen.
<configuration>
<configSections>
<section name="sampleSection"
type="System.Configuration.SingleTagSectionHandler" />
</configSections>
<sampleSection setting1="Value1" setting2="value two"
setting3="third value" />
</configuration>
Konfigurationsdatei
Dieses Element kann in der Konfigurationsdatei der Anwendung, der Konfigurationsdatei des Computers (Machine.config) und in den Web.config-Dateien verwendet werden, die sich nicht auf Anwendungsverzeichnisebene befinden.
Siehe auch
Schema für Konfigurationsabschnitte | Einstellungen für Konfigurationsabschnitte