WalletItemStore.GetItemsAsync 方法

定義

多載

GetItemsAsync()

警告

不再支援 ApplicationModel.Wallet 命名空間,且即將淘汰。 我們鼓勵開發人員避免使用此命名空間。

傳回此應用程式所擁有的所有電子錢包專案的集合。

GetItemsAsync(WalletItemKind)

警告

不再支援 ApplicationModel.Wallet 命名空間,且即將淘汰。 我們鼓勵開發人員避免使用此命名空間。

傳回這個應用程式所擁有指定類型之電子錢包專案的集合。

GetItemsAsync()

警告

不再支援 ApplicationModel.Wallet 命名空間,且即將淘汰。 我們鼓勵開發人員避免使用此命名空間。

傳回此應用程式所擁有的所有電子錢包專案的集合。

public:
 virtual IAsyncOperation<IVectorView<WalletItem ^> ^> ^ GetItemsAsync() = GetItemsAsync;
/// [Windows.Foundation.Metadata.Overload("GetItemsAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<WalletItem>> GetItemsAsync();
/// [Windows.Foundation.Metadata.Overload("GetItemsAsync")]
/// [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<IVectorView<WalletItem>> GetItemsAsync();
[Windows.Foundation.Metadata.Overload("GetItemsAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<WalletItem>> GetItemsAsync();
[Windows.Foundation.Metadata.Overload("GetItemsAsync")]
[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<IReadOnlyList<WalletItem>> GetItemsAsync();
function getItemsAsync()
Public Function GetItemsAsync () As IAsyncOperation(Of IReadOnlyList(Of WalletItem))

傳回

在成功完成時,非同步作業會傳回此應用程式可存取的電子錢包專案集合。 如果您使用 非同步程式設計,結果類型是 WalletItem 專案的唯讀清單/向量。 (您可以使用適用于 C++ 或 JavaScript 的IVectorView < WalletItem> API、適用于 .NET.) 的IReadOnlyList API

屬性

另請參閱

適用於

GetItemsAsync(WalletItemKind)

警告

不再支援 ApplicationModel.Wallet 命名空間,且即將淘汰。 我們鼓勵開發人員避免使用此命名空間。

傳回這個應用程式所擁有指定類型之電子錢包專案的集合。

public:
 virtual IAsyncOperation<IVectorView<WalletItem ^> ^> ^ GetItemsAsync(WalletItemKind kind) = GetItemsAsync;
/// [Windows.Foundation.Metadata.Overload("GetItemsWithKindAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IVectorView<WalletItem>> GetItemsAsync(WalletItemKind const& kind);
/// [Windows.Foundation.Metadata.Overload("GetItemsWithKindAsync")]
/// [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<IVectorView<WalletItem>> GetItemsAsync(WalletItemKind const& kind);
[Windows.Foundation.Metadata.Overload("GetItemsWithKindAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IReadOnlyList<WalletItem>> GetItemsAsync(WalletItemKind kind);
[Windows.Foundation.Metadata.Overload("GetItemsWithKindAsync")]
[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<IReadOnlyList<WalletItem>> GetItemsAsync(WalletItemKind kind);
function getItemsAsync(kind)
Public Function GetItemsAsync (kind As WalletItemKind) As IAsyncOperation(Of IReadOnlyList(Of WalletItem))

參數

kind
WalletItemKind

要擷取的電子錢包專案類型。

傳回

在成功完成時,非同步作業會傳回這個應用程式可存取之指定類型之電子錢包專案的集合。 如果您使用 非同步程式設計,結果類型是 WalletItem 專案的唯讀清單/向量。 (您可以使用適用于 C++ 或 JavaScript 的IVectorView < WalletItem> API、適用于 .NET.) 的IReadOnlyList API

屬性

適用於