This documentation is archived and is not being maintained.

LocalFileSettingsProvider.GetPropertyValues Method

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
Not applicable.

Parameters

context
properties

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

ConfigurationErrorsException

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 Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Show: