WalletItemStore.ImportItemAsync(IRandomAccessStreamReference) Method

Definition

Caution

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

Imports data from a ".mswallet" XML file into the wallet store.".mswallet" is an XML serialization format for wallet item info. For a guide to the ".mswallet" format (and a link to schema in XSD), see Quickstart: Creating and distributing .mswallet files.

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)

Parameters

stream
IRandomAccessStreamReference

The ".mswallet" file to import.

Returns

An asynchronous operation that, on successful completion, returns the wallet item that was imported into the wallet. If you use Asynchronous programming, the result type on successful completion is a single WalletItem.

Attributes

Applies to

See also