This documentation is archived and is not being maintained.

LocalFileSettingsProvider.GetPropertyValues Method

Note: This method is new in the .NET Framework version 2.0.

Returns the collection of setting property values for the specified application instance and settings property group.

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

public override SettingsPropertyValueCollection GetPropertyValues (
	SettingsContext context,
	SettingsPropertyCollection properties
public SettingsPropertyValueCollection GetPropertyValues (
	SettingsContext context, 
	SettingsPropertyCollection properties
public override function GetPropertyValues (
	context : SettingsContext, 
	properties : SettingsPropertyCollection
) : SettingsPropertyValueCollection



A SettingsContext describing the current application usage.


A SettingsPropertyCollection containing the settings property group whose values are to be retrieved.

Return Value

A SettingsPropertyValueCollection containing the values for the specified settings property group.

Exception typeCondition


A user-scoped setting was encountered but the current configuration only supports application-scoped settings.

The GetPropertyValues method also manages the special application settings type ConnectionString. Connection strings are stored in a special section of the configuration file delimited by the element <connectionstrings>.

Caution noteCaution

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 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0