Windows Dev Center

AddWalletItemTask.Item Property

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

© 2015 Microsoft