This topic has not yet been rated - Rate this topic

IApplicationSettingsProvider.GetPreviousVersion Method

Note: This method is new in the .NET Framework version 2.0.

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

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

SettingsPropertyValue GetPreviousVersion (
	SettingsContext context,
	SettingsProperty property
)
SettingsPropertyValue GetPreviousVersion (
	SettingsContext context, 
	SettingsProperty property
)
function GetPreviousVersion (
	context : SettingsContext, 
	property : SettingsProperty
) : SettingsPropertyValue

Parameters

context

A SettingsContext describing the current application usage.

property

The SettingsProperty whose value is to be returned.

Return Value

A SettingsPropertyValue containing the value of the specified property setting as it was last set in the previous version of the application; or a null reference (Nothing in Visual Basic) 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.

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.

.NET Framework

Supported in: 2.0
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.