AddWalletItemTask Class
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Allows an application to launch the Wallet application. The provided Wallet item is displayed to the user and the user can choose to add the item to his or her Wallet.
Microsoft.Phone.Tasks::ChooserBase<AddWalletItemResult>
Microsoft.Phone.Tasks::AddWalletItemTask
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.
The AddWalletItemTask type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Item | Gets or sets the WalletItem to be added to the Wallet. |
![]() | TaskEventArgs | The EventArgs for the Completed event. (Inherited from ChooserBase<TTaskEventArgs>.) |
| Name | Description | |
|---|---|---|
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) |
![]() | FireCompleted | Raises the Completed event. (Inherited from ChooserBase<TTaskEventArgs>.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Show | Shows the Wallet application with the provided Wallet item displayed, allowing the user to choose to add the item to his or her Wallet. (Overrides ChooserBase<TTaskEventArgs>::Show().) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | Completed | Occurs when a Chooser task is completed. (Inherited from ChooserBase<TTaskEventArgs>.) |
Only PaymentInstrument and WalletTransactionItem objects can be added to the Wallet using this chooser. Attempts to add other WalletItem types will cause an exception to be thrown when Show() is called. To add a Deal to the Wallet, see SaveAsync.
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 |
ID_CAP_WALLET_PAYMENTINSTRUMENTS | Windows Phone 8 |
For more info, see App capabilities and hardware requirements for Windows Phone 8.



