ApplicationSettingsBase.GetPreviousVersion(String) Método

Definição

Retorna o valor da propriedade de configuração nomeada para a versão anterior do mesmo aplicativo.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

Parâmetros

propertyName
String

Um String que contém o nome da propriedade de configuração cujo valor será retornado.A String containing the name of the settings property whose value is to be returned.

Retornos

Object

Um Object que contém o valor do SettingsProperty especificado se encontrado; caso contrário, null.An Object containing the value of the specified SettingsProperty if found; otherwise, null.

Exceções

A propriedade não existe.The property does not exist. A contagem de propriedades é zero ou não foi possível encontrar a propriedade no armazenamento de dados.The property count is zero or the property cannot be found in the data store.

Comentários

O GetPreviousVersion método é geralmente usado em conjunto com o Upgrade método durante a migração de configurações do aplicativo durante a instalação de uma nova versão de um aplicativo.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.

Aplica-se a

Confira também