WalletItemStore.ImportItemAsync(IRandomAccessStreamReference) 方法

定義

警告

不再支援 ApplicationModel.Wallet 命名空間,即將淘汰。 建議開發人員避免使用此命名空間。

將資料從 「.mswallet」 XML 檔案匯入到電子錢包存放區。」mswallet「 是電子包專案資訊的 XML 序列化格式。 如需 「.mswallet」 格式的指南 (以及 XSD) 架構的連結,請參閱 快速入門:建立和散發 .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

屬性

適用於

另請參閱