GetItemsAsync Method
Collapse the table of content
Expand the table of content

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)

public static Task<WalletItemCollection> GetItemsAsync()

Return Value

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

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.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft