ApplicationSettingsBase.GetPreviousVersion(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the value of the named settings property for the previous version of the same application.
public:
System::Object ^ GetPreviousVersion(System::String ^ propertyName);
public object GetPreviousVersion (string propertyName);
member this.GetPreviousVersion : string -> obj
Public Function GetPreviousVersion (propertyName As String) As Object
Parameters
- propertyName
- String
A String containing the name of the settings property whose value is to be returned.
Returns
An Object containing the value of the specified SettingsProperty if found; otherwise, null
.
Exceptions
The property does not exist. The property count is zero or the property cannot be found in the data store.
Remarks
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.
Applies to
See also
.NET
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示