WalletItemSystemStore WalletItemSystemStore WalletItemSystemStore WalletItemSystemStore Class

Definition

Defines a set of asynchronous actions and operations that manage the wallet items in the system wallet database. These can be used to read the existing items, or to add and remove items.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime.

Call the WalletManagerSystem.RequestStoreAsync method to obtain an instance of this class.

public : sealed class WalletItemSystemStore : IWalletItemSystemStore, IWalletItemSystemStore2public sealed class WalletItemSystemStore : IWalletItemSystemStore, IWalletItemSystemStore2Public NotInheritable Class WalletItemSystemStore Implements IWalletItemSystemStore, IWalletItemSystemStore2// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
walletSystem

Methods

DeleteAsync(WalletItem) DeleteAsync(WalletItem) DeleteAsync(WalletItem) DeleteAsync(WalletItem)

Asynchronously removes a specific wallet item with the given ID from the wallet system data store.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime.

public : IAsyncAction DeleteAsync(WalletItem item)public IAsyncAction DeleteAsync(WalletItem item)Public Function DeleteAsync(item As WalletItem) As IAsyncAction// You can use this method in JavaScript.
Parameters
item
WalletItem WalletItem WalletItem WalletItem

The ID of the wallet item to remove from the system data store.

Returns

An asynchronous action. If you use Asynchronous programming, the result type is void.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
walletSystem

GetAppStatusForItem(WalletItem) GetAppStatusForItem(WalletItem) GetAppStatusForItem(WalletItem) GetAppStatusForItem(WalletItem)

Gets a WalletItemAppAssociation value indicating if an app is installed for the specified WalletItem.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime.

public : WalletItemAppAssociation GetAppStatusForItem(WalletItem item)public WalletItemAppAssociation GetAppStatusForItem(WalletItem item)Public Function GetAppStatusForItem(item As WalletItem) As WalletItemAppAssociation// You can use this method in JavaScript.
Parameters
item
WalletItem WalletItem WalletItem WalletItem

The item for which to retrieve the status.

Returns

The WalletItemAppAssociation value indicating if an app is installed for the specified WalletItem specified by the item parameter.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
walletSystem

GetItemsAsync() GetItemsAsync() GetItemsAsync() GetItemsAsync()

Returns the collection of all system wallet items owned by this app.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime.

public : IAsyncOperation<IVectorView<WalletItem>> GetItemsAsync()public IAsyncOperation<IReadOnlyList<WalletItem>> GetItemsAsync()Public Function GetItemsAsync() As IAsyncOperation( Of IReadOnlyListWalletItem )// You can use this method in JavaScript.
Returns
IAsyncOperation<IVectorView<WalletItem>> IAsyncOperation<IReadOnlyList<WalletItem>> IAsyncOperation<IReadOnlyList<WalletItem>> IAsyncOperation<IReadOnlyList<WalletItem>>

An asynchronous operation that, on successful completion, returns the collection of wallet items accessible by this app. If you use Asynchronous programming, the result type is a read-only list/vector of WalletItem items. (You can use APIs of IVectorView; for C++ or JavaScript, APIs of IReadOnlyList for .NET.)

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
walletSystem

ImportItemAsync(IRandomAccessStreamReference) ImportItemAsync(IRandomAccessStreamReference) ImportItemAsync(IRandomAccessStreamReference) ImportItemAsync(IRandomAccessStreamReference)

Imports data from a ".mswallet" XML file into the system wallet store.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime.

public : IAsyncOperation<WalletItem> ImportItemAsync(IRandomAccessStreamReference stream)public IAsyncOperation<WalletItem> ImportItemAsync(IRandomAccessStreamReference stream)Public Function ImportItemAsync(stream As IRandomAccessStreamReference) As IAsyncOperation( Of WalletItem )// You can use this method in JavaScript.
Parameters
Returns

An asynchronous operation that, on successful completion, returns the wallet item that was imported into the wallet. If you use Asynchronous programming, the result type on successful completion is a single WalletItem.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
walletSystem

LaunchAppForItemAsync(WalletItem) LaunchAppForItemAsync(WalletItem) LaunchAppForItemAsync(WalletItem) LaunchAppForItemAsync(WalletItem)

Launches the app that is associated with the given wallet item.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime.

public : IAsyncOperation<PlatForm::Boolean> LaunchAppForItemAsync(WalletItem item)public IAsyncOperation<bool> LaunchAppForItemAsync(WalletItem item)Public Function LaunchAppForItemAsync(item As WalletItem) As IAsyncOperation( Of bool )// You can use this method in JavaScript.
Parameters
item
WalletItem WalletItem WalletItem WalletItem

The wallet item to launch an app for.

Returns

An async action indicating that the operation has completed.

Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
walletSystem

Events

ItemsChanged ItemsChanged ItemsChanged ItemsChanged

Occurs when items in the WalletItemSystemStore have changed.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime.

public : event TypedEventHandler ItemsChanged<WalletItemSystemStore,  object>public event TypedEventHandler ItemsChanged<WalletItemSystemStore,  object>Public Event ItemsChanged<WalletItemSystemStore,  object>// You can use this event in JavaScript.
Additional features and requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
walletSystem