Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WalletItem.SaveAsync Method

July 28, 2014

Asynchronously saves changes to the wallet item. If this item is a Deal and the item is not in the Wallet, it will be added. If the item is a PaymentInstrument, WalletTransactionItem or an OnlinePaymentInstrument, you can only use this method to update the item if it already exists in the Wallet, otherwise an exception will be thrown. To add a new instance of PaymentInstrument or WalletTransactionItem, use the AddWalletItemTask. For more information, see How to use the add Wallet item task for Windows Phone 8.

Namespace:  Microsoft.Phone.Wallet
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

public Task SaveAsync()

Return Value

Type: System.Threading.Tasks.Task
The asynchronous operation to save the changes to the wallet item.

The following table lists the fields that must be set before calling SaveAsync or using AddWalletItemTask. If these are not set, an InvalidOperationException will be thrown.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2014 Microsoft