Sets the values of the specified group of property settings.
Assembly: System (in System.dll)
public override void SetPropertyValues( SettingsContext context, SettingsPropertyValueCollection values )
- Type: System.Configuration.SettingsContext
A SettingsContext describing the current application usage.
- Type: System.Configuration.SettingsPropertyValueCollection
A SettingsPropertyValueCollection representing the group of property settings to set.
A user-scoped setting was encountered but the current configuration only supports application-scoped settings.
There was a general failure saving the settings to the configuration file.
A settings wrapper class, derived from ApplicationSettingsBase, contains the Save method, which is called to persist the values of all of its settings properties. This method enumerates through all the settings providers associated with its settings properties, and calls the SetPropertyValues method for each SettingsProvider to perform the actual serialization operation.
individually serializes each user-scoped application settings property to its corresponding application setting in the appropriate user.config configuration file.
By default, the method uses the following logical sequence to determine the serialization scheme, depending on type of the settings property:
XML serialization is used.
If a user-scoped settings property is set back to its default value explicitly, then the local file settings provider will remove the entry for the associated setting from the user configuration file. The next read access for this property will simply use the default value.
LocalFileSettingsProvider does not use encryption to persist any settings. Therefore, do not store plain text passwords or other sensitive information using this provider without taking additional precautions, such as separately encrypting the information within the configuration file. For more information, see Encrypting Configuration Information Using Protected Configuration.
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.