Share via


WalletItemStore.GetWalletItemAsync(String) メソッド

定義

注意事項

ApplicationModel.Wallet 名前空間はサポートされなくなり、間もなく非推奨になります。 開発者は、この名前空間を使用しないようにすることをお勧めします。

ウォレット データベースから、指定された ID を持つ個々のウォレットアイテムを取得します。 要求された項目は、このアプリによって所有されている必要があります。

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)

パラメーター

id
String

Platform::String

winrt::hstring

ウォレットアイテムの ID。

戻り値

正常に完了すると、このアプリが所有する指定された ID を持つウォレットアイテムを返す非同期操作。 非同期プログラミングを使用する場合、結果の種類は 1 つの WalletItem になります。 現在の WalletItemStore で、指定した ID のアイテムがこのアプリで見つからない場合、またはアイテムがこのアプリによって所有されていない場合、結果は null になります

属性

適用対象

こちらもご覧ください