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)

public:
property bool ForceSave {
	bool get();
	void set(bool value);
}

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: