AddWalletItemTask.Item Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the WalletItem to be added to the Wallet.

Namespace:  Microsoft.Phone.Tasks
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

Syntax

Public Property Item As WalletItem
public WalletItem Item { get; set; }

Property Value

Type: Microsoft.Phone.Wallet..::.WalletItem
The WalletItem to add to the Wallet.

Remarks

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.

Make sure that you set all of the required properties for the WalletItem class you are adding before calling Show()()() or an InvalidOperationException will be thrown. For a list of required properties for each WalletItem, see the table in GetItemsAsync

Version Information

Windows Phone OS

Supported in: 8.1, 8.0

See Also

Reference

AddWalletItemTask Class

Microsoft.Phone.Tasks Namespace