Wallet Class
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Provides an app access to its Wallet items.
Inheritance Hierarchy
System..::.Object
Microsoft.Phone.Wallet..::.Wallet
Namespace: Microsoft.Phone.Wallet
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
Syntax
Public NotInheritable Class Wallet
public static class Wallet
The Wallet type exposes the following members.
Methods
Name | Description | |
---|---|---|
Clear | Deletes all items owned by your app from the wallet. | |
FindItem | Searches for a wallet item with the specified Id. | |
GetItemsAsync | Asynchronously retrieves a list of all wallet items owned by your app. | |
Remove(String) | Deletes the wallet item with the given ID from wallet. | |
Remove(WalletItem) | Deletes the specified wallet item from the wallet. |
Top
Remarks
Capabilities
If you use this API in your app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.
ID_CAP_WALLET |
Windows Phone 8 |
For more info, see App capabilities and hardware requirements for Windows Phone 8.
Version Information
Windows Phone OS
Supported in: 8.1, 8.0
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.