WalletItemSystemStore.ImportItemAsync(IRandomAccessStreamReference) Method

Definition

Imports data from a ".mswallet" XML file into the system wallet store.

Note

This API is not available to all Windows apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime.

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("IWalletItemSystemStore 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("IWalletItemSystemStore 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

Windows requirements

App capabilities
walletSystem

Applies to