<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.7.0" />

SectionInformation

public sealed class SectionInformation
Contains metadata about an individual section within the configuration hierarchy. This class cannot be inherited.

Gets or sets a value that indicates where in the configuration file hierarchy the associated configuration section can be defined.

Gets or sets a value that indicates where in the configuration file hierarchy the associated configuration section can be declared.

public bool AllowLocation { get; set; }

Gets or sets a value that indicates whether the configuration section allows the location attribute.

public bool AllowOverride { get; set; }

Gets or sets a value that indicates whether the associated configuration section can be overridden by lower-level configuration files.

public string ConfigSource { get; set; }

Gets or sets the name of the include file in which the associated configuration section is defined, if such a file exists.

public bool ForceSave { get; set; }

Gets or sets a value that indicates whether the associated configuration section will be saved even if it has not been modified.

public bool InheritInChildApplications { get; set; }

Gets or sets a value that indicates whether the settings that are specified in the associated configuration section are inherited by applications that reside in a subdirectory of the relevant application.

public bool IsDeclarationRequired { get; }

Gets a value that indicates whether the configuration section must be declared in the configuration file.

public bool IsDeclared { get; }

Gets a value that indicates whether the associated configuration section is declared in the configuration file.

public bool IsLocked { get; }

Gets a value that indicates whether the associated configuration section is locked.

public bool IsProtected { get; }

Gets a value that indicates whether the associated configuration section is protected.

public string Name { get; }

Gets the name of the associated configuration section.

public OverrideMode OverrideMode { get; set; }

Gets or sets the OverrideMode enumeration value that specifies whether the associated configuration section can be overridden by child configuration files.

public OverrideMode OverrideModeDefault { get; set; }

Gets or sets a value that specifies the default override behavior of a configuration section by child configuration files.

Gets the override behavior of a configuration section that is in turn based on whether child configuration files can lock the configuration section.

Gets the protected configuration provider for the associated configuration section.

public bool RequirePermission { get; set; }

Gets a value that indicates whether the associated configuration section requires access permissions.

public bool RestartOnExternalChanges { get; set; }

Gets or sets a value that specifies whether a change in an external configuration include file requires an application restart.

public string SectionName { get; }

Gets the name of the associated configuration section.

public string Type { get; set; }

Gets or sets the section class name.

public void ForceDeclaration()

Forces the associated configuration section to appear in the configuration file.

public void ForceDeclaration(bool force)

Forces the associated configuration section to appear in the configuration file, or removes an existing section from the configuration file.

Gets the configuration section that contains the configuration section associated with this object.

public string GetRawXml()

Returns an XML node object that represents the associated configuration-section object.

public void ProtectSection(string protectionProvider)

Marks a configuration section for protection.

public void RevertToParent()

Causes the associated configuration section to inherit all its values from the parent section.

public void SetRawXml(string rawXml)

Sets the object to an XML representation of the associated configuration section within the configuration file.

public void UnprotectSection()

Removes the protected configuration encryption from the associated configuration section.