Wallet.GetItemsAsync Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Asynchronously retrieves a list of all wallet items owned by your app.

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

Syntax

Public Shared Function GetItemsAsync As Task(Of WalletItemCollection)
public static Task<WalletItemCollection> GetItemsAsync()

Return Value

Type: System.Threading.Tasks..::.Task<(Of <(WalletItemCollection>)>)
The asynchronous operation that returns the list of wallet items.

Remarks

When the asynchronous retrieval operation finishes successfully, it returns a list of your wallet items.

When adding a new item to this collection, make sure you have set the required properties for the item. If these are not set, you will receive an InvalidOperationException. The following table lists the required fields for each wallet item type.

Wallet Item Type

Required Fields

Deal

DisplayName, MerchantName

PaymentInstrument

DisplayName, PaymentInstrumentKinds, Logo99x99, Logo159x159, Logo336x336

WalletTransactionItem

DisplayName, Logo99x99, Logo159x159, Logo336x336

OnlinePaymentInstrument

DisplayName, Logo99x99, Logo159x159, Logo336x336

Version Information

Windows Phone OS

Supported in: 8.1, 8.0

See Also

Reference

Wallet Class

Microsoft.Phone.Wallet Namespace