This topic has not yet been rated - Rate this topic

AddWalletItemTask Class

April 12, 2014

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.

Namespace:  Microsoft.Phone.Tasks
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.
public class AddWalletItemTask : ChooserBase<AddWalletItemResult>
<AddWalletItemTask .../>

The AddWalletItemTask type exposes the following members.

  NameDescription
Public methodAddWalletItemTaskInitializes a new instance of the AddWalletItemTask class.
Top
  NameDescription
Public propertyItemGets or sets the WalletItem to be added to the Wallet.
Public propertyTaskEventArgsThe EventArgs for the Completed event. (Inherited from ChooserBase<TTaskEventArgs>.)
Top
  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Protected methodFireCompletedRaises the Completed event. (Inherited from ChooserBase<TTaskEventArgs>.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodShowShows 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().)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top
  NameDescription
Public eventCompletedOccurs when a Chooser task is completed. (Inherited from ChooserBase<TTaskEventArgs>.)
Top

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.

Windows Phone OS

Supported in: 8.1, 8.0
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.