Export (0) Print
Expand All

SectionInformation.ForceSave Property

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

Namespace:  System.Configuration
Assembly:  System.Configuration (in System.Configuration.dll)

member ForceSave : bool with get, set

Property Value

Type: System.Boolean
true if the associated ConfigurationSection object will be saved even if it has not been modified; otherwise, false. The default is false.
NoteNote

If the configuration file is saved (even if there are no modifications), ASP.NET restarts the application.

The following example shows how to use the ForceSave property of a ConfigurationSection object.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft