LocalFileSettingsProvider::GetPreviousVersion Method (SettingsContext^, SettingsProperty^)
.NET Framework (current version)
Returns the value of the named settings property for the previous version of the same application.
Assembly: System (in System.dll)
public: [FileIOPermissionAttribute(SecurityAction::Assert, AllFiles = FileIOPermissionAccess::NoAccess | FileIOPermissionAccess::Read | FileIOPermissionAccess::PathDiscovery)] [PermissionSetAttribute(SecurityAction::LinkDemand, Name = "FullTrust")] [PermissionSetAttribute(SecurityAction::InheritanceDemand, Name = "FullTrust")] virtual SettingsPropertyValue^ GetPreviousVersion( SettingsContext^ context, SettingsProperty^ property ) sealed
Parameters
- context
-
Type:
System.Configuration::SettingsContext^
A SettingsContext that describes where the application settings property is used.
- property
-
Type:
System.Configuration::SettingsProperty^
The SettingsProperty whose value is to be returned.
Return Value
Type: System.Configuration::SettingsPropertyValue^A SettingsPropertyValue representing the application setting if found; otherwise, null.
.NET Framework
Available since 2.0
Available since 2.0
Show: