ConfigurationSectionGroup.ForceDeclaration Method (Boolean)
Forces the declaration for this ConfigurationSectionGroup object.
Assembly: System.Configuration (in System.Configuration.dll)
The ForceDeclaration method forces this ConfigurationSectionGroup declaration to be written to the file if force is true. If force is false, this action might be ignored if the ConfigurationSectionGroup object is required by the system.
The ConfigurationSectionGroup object to be written to a configuration file, even if it is not required because it is already declared in a parent file. Also, it can remove a group from a configuration file if the group is not required.method can force a
You might want to use themethod to make a configuration file more portable from one computer to another, without worrying about whether the group declaration already exists.
Available since 2.0