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.

Inheritance Hierarchy

Microsoft.Phone.Tasks..::.ChooserBase<(Of <(AddWalletItemResult>)>)

Namespace: Microsoft.Phone.Tasks
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.


Public Class AddWalletItemTask _
    Inherits ChooserBase(Of AddWalletItemResult)
public class AddWalletItemTask : ChooserBase<AddWalletItemResult>
<AddWalletItemTask .../>

The AddWalletItemTask type exposes the following members.


Name Description
AddWalletItemTask Initializes a new instance of the AddWalletItemTask class.



Name Description
Item Gets or sets the WalletItem to be added to the Wallet.
TaskEventArgs The EventArgs for the Completed event. (Inherited from ChooserBase<(Of <(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<(Of <(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<(Of <(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<(Of <(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.


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.


Windows Phone 8


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.

See Also


Microsoft.Phone.Tasks Namespace