This topic has not yet been rated - Rate this topic

LocalFileSettingsProvider.GetPreviousVersion Method

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)

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.

.NET Framework

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

Community Additions

ADD
© 2013 Microsoft. All rights reserved.