SectionInformation.ForceSave Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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.

System_CAPS_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
Available since 2.0
Return to top
Show: