WalletItemStore.ImportItemAsync(IRandomAccessStreamReference) 方法

定义

注意

ApplicationModel.Wallet 命名空间不再受支持,不久将弃用。 建议开发人员避免使用此命名空间。

将数据从“.mswallet”XML 文件导入电子钱包存储。”mswallet“是电子钱包项目信息的 XML 序列化格式。 有关 XSD) 中“.mswallet”格式 (和架构链接的指南,请参阅 快速入门:创建和分发 .mswallet 文件

public:
 virtual IAsyncOperation<WalletItem ^> ^ ImportItemAsync(IRandomAccessStreamReference ^ stream) = ImportItemAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<WalletItem> ImportItemAsync(IRandomAccessStreamReference const& stream);
/// [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> ImportItemAsync(IRandomAccessStreamReference const& stream);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<WalletItem> ImportItemAsync(IRandomAccessStreamReference stream);
[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> ImportItemAsync(IRandomAccessStreamReference stream);
function importItemAsync(stream)
Public Function ImportItemAsync (stream As IRandomAccessStreamReference) As IAsyncOperation(Of WalletItem)

参数

stream
IRandomAccessStreamReference

要导入的“.mswallet”文件。

返回

一个异步操作,该操作在成功完成后返回已导入到电子钱包中的电子钱包项目。 如果使用 异步编程,则成功完成时的结果类型为单个 WalletItem

属性

适用于

另请参阅