IApplicationSettingsProvider::GetPreviousVersion Method (SettingsContext^, SettingsProperty^)
.NET Framework (current version)
Returns the value of the specified settings property for the previous version of the same application.
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.
SecurityException
For LinkDemand permission.
.NET Framework
Available since 2.0
Available since 2.0
Show: