Item Property
Collapse the table of content
Expand the table of content

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)

public WalletItem Item { get; set; }

Property Value

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

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

Windows Phone OS

Supported in: 8.1, 8.0

© 2017 Microsoft