EN
Este conteúdo não está disponível em seu idioma, mas aqui está a versão em inglês.

ApplicationData.SetVersionAsync | setVersionAsync method

Applies to Windows and Windows Phone

Sets the version number of the application data in the app data store.

Syntax


applicationData.setVersionAsync(desiredVersion, handler).done( /* Your success and error handlers */ );

Parameters

desiredVersion

Type: Number [JavaScript] | System.UInt32 [.NET] | uint32 [C++]

The new version number.

handler

Type: ApplicationDataSetVersionHandler

The set version event handler.

Return value

Type: IAsyncAction

An object that is used to manage the asynchronous set version operation.

Remarks

Versioning enables you to change the application data format used in a future release of your app without causing compatibility problems with previous releases of your app. The app checks the version of the data in the data store, and if it is less than the version the app expects, the app should update the application data to the new format and update the version.

It is strongly recommended that you use sequential and incrementing version numbers, starting at 1.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Storage
Windows::Storage [C++]

Metadata

Windows.winmd

See also

ApplicationData

 

 

Mostrar:
© 2014 Microsoft