Export (0) Print
Expand All

SettingsProvider.SetPropertyValues Method

Sets the values of the specified group of property settings.

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

public abstract void SetPropertyValues (
	SettingsContext context,
	SettingsPropertyValueCollection collection
)
public abstract void SetPropertyValues (
	SettingsContext context, 
	SettingsPropertyValueCollection collection
)
public abstract function SetPropertyValues (
	context : SettingsContext, 
	collection : SettingsPropertyValueCollection
)
Not applicable.

Parameters

context

A SettingsContext describing the current application usage.

collection

A SettingsPropertyValueCollection representing the group of property settings to set.

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.

The SetPropertyValues method should be implemented with security in mind:

  • Only fully trusted code should be allowed to update application settings. Partially trusted code should be allowed to update only user application settings. Untrusted code is not typically allowed to update application settings.

  • Usage quotas should be considered to guard against resource attacks by partially trusted applications.

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

Community Additions

ADD
Show:
© 2014 Microsoft