Dela via


WalletItemStore.UpdateAsync(WalletItem) Method

Definition

Caution

The ApplicationModel.Wallet namespace is no longer supported, and will soon be deprecated. Developers are encouraged to avoid using this namespace.

Updates a wallet item in the shared store, based on the changed values in the WalletItem object provided.

public:
 virtual IAsyncAction ^ UpdateAsync(WalletItem ^ item) = UpdateAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction UpdateAsync(WalletItem const& item);
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("IWalletItemStore is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 917504, "Windows.Foundation.UniversalApiContract")]
IAsyncAction UpdateAsync(WalletItem const& item);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction UpdateAsync(WalletItem item);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("IWalletItemStore is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 917504, "Windows.Foundation.UniversalApiContract")]
public IAsyncAction UpdateAsync(WalletItem item);
function updateAsync(item)
Public Function UpdateAsync (item As WalletItem) As IAsyncAction

Parameters

item
WalletItem

The updated data for the wallet item.

Returns

An asynchronous action. If you use Asynchronous programming, the result type is void.

Attributes

Remarks

An exception is thrown if the item doesn't already exist in the wallet. How to handle errors/exceptions varies by programming language, particularly so when calling asynchronous methods. See Asynchronous programming.

Most of the APIs for this class can be seen in example usages in the Quickstart: Using the APIs topic.

Applies to

See also