ApplicationData.SetVersionAsync メソッド

定義

アプリ データ ストア内のアプリケーション データのバージョン番号を設定します。

public:
 virtual IAsyncAction ^ SetVersionAsync(unsigned int desiredVersion, ApplicationDataSetVersionHandler ^ handler) = SetVersionAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction SetVersionAsync(uint32_t const& desiredVersion, ApplicationDataSetVersionHandler const& handler);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction SetVersionAsync(uint desiredVersion, ApplicationDataSetVersionHandler handler);
function setVersionAsync(desiredVersion, handler)
Public Function SetVersionAsync (desiredVersion As UInteger, handler As ApplicationDataSetVersionHandler) As IAsyncAction

パラメーター

desiredVersion
UInt32

unsigned int

uint32_t

新しいバージョン番号。

handler
ApplicationDataSetVersionHandler

set version イベント ハンドラー。

戻り値

非同期セット のバージョン操作を管理するために使用される オブジェクト。

属性

注釈

バージョン管理を使用すると、以前のリリースのアプリとの互換性の問題を引き起こさずに、アプリの将来のリリースで使用されるアプリケーション データ形式を変更できます。 アプリはデータ ストア内のデータのバージョンを確認し、アプリが想定するバージョンより小さい場合は、アプリケーション データを新しい形式に更新し、バージョンを更新する必要があります。

1 から始まる、順次バージョン番号と増分バージョン番号を使用することを強くお勧めします。

適用対象