LocalFileSettingsProvider.GetPreviousVersion Method
.NET Framework 2.0
Note: This method is new in the .NET Framework version 2.0.
Returns the value of the named settings property for the previous version of the same application.
Namespace: System.Configuration
Assembly: System (in system.dll)
Assembly: System (in system.dll)
public SettingsPropertyValue GetPreviousVersion (
SettingsContext context,
SettingsProperty property
)
public final SettingsPropertyValue GetPreviousVersion ( SettingsContext context, SettingsProperty property )
public final function GetPreviousVersion ( context : SettingsContext, property : SettingsProperty ) : SettingsPropertyValue
Parameters
- context
A SettingsContext that describes where the application settings property is used.
- property
The SettingsProperty whose value is to be returned.
Return Value
A SettingsPropertyValue representing the application setting if found; otherwise, a null reference (Nothing in Visual Basic).The GetPreviousVersion method is often used in conjunction with the Upgrade method when migrating application settings during the installation of a new version of an application. For more information, see the Upgrade method.
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.