IApplicationSettingsProvider::GetPreviousVersion Method (SettingsContext^, SettingsProperty^)

 

Returns the value of the specified settings property for the previous version of the same application.

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

[PermissionSetAttribute(SecurityAction::LinkDemand, Name = "FullTrust")]
SettingsPropertyValue^ GetPreviousVersion(
	SettingsContext^ context,
	SettingsProperty^ property
)

Parameters

context
Type: System.Configuration::SettingsContext^

A SettingsContext describing the current application usage.

property
Type: System.Configuration::SettingsProperty^

The SettingsProperty whose value is to be returned.

Return Value

Type: System.Configuration::SettingsPropertyValue^

A SettingsPropertyValue containing the value of the specified property setting as it was last set in the previous version of the application; or null if the setting cannot be found.

You can use the GetPreviousVersion method in conjunction with the Upgrade method to migrate application settings during or after the installation of a new version of an application.

.NET Framework
Available since 2.0
Return to top
Show: