Delen via


WalletItemStore.GetWalletItemAsync(String) Method

Definition

Caution

The ApplicationModel.Wallet namespace is no longer supported, and will soon be deprecated. Developers are encouraged to avoid using this namespace.

Gets an individual wallet item with the given ID from the wallet database. The item requested must be owned by this app.

public:
 virtual IAsyncOperation<WalletItem ^> ^ GetWalletItemAsync(Platform::String ^ id) = GetWalletItemAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<WalletItem> GetWalletItemAsync(winrt::hstring const& id);
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [Windows.Foundation.Metadata.Deprecated("IWalletItemStore is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 917504, "Windows.Foundation.UniversalApiContract")]
IAsyncOperation<WalletItem> GetWalletItemAsync(winrt::hstring const& id);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<WalletItem> GetWalletItemAsync(string id);
[Windows.Foundation.Metadata.RemoteAsync]
[Windows.Foundation.Metadata.Deprecated("IWalletItemStore is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 917504, "Windows.Foundation.UniversalApiContract")]
public IAsyncOperation<WalletItem> GetWalletItemAsync(string id);
function getWalletItemAsync(id)
Public Function GetWalletItemAsync (id As String) As IAsyncOperation(Of WalletItem)

Parameters

id
String

Platform::String

winrt::hstring

The ID of the wallet item.

Returns

An asynchronous operation that, on successful completion, returns the wallet item with the specified ID that is owned by this app. If you use Asynchronous programming, the result type is a single WalletItem. If an item with the specified ID cannot be found for this app in the current WalletItemStore or if the item isn't owned by this app, the result is null.

Attributes

Applies to

See also