Share via


CurrentAppSimulator.LoadListingInformationByProductIdsAsync Method

Definition

Loads the simulated app listing information asynchronously, returning available in-app products in the ProductListings collection that match any of the given products IDs.

public:
 static IAsyncOperation<ListingInformation ^> ^ LoadListingInformationByProductIdsAsync(IIterable<Platform::String ^> ^ productIds);
 static IAsyncOperation<ListingInformation> LoadListingInformationByProductIdsAsync(IIterable<winrt::hstring> const& productIds);
public static IAsyncOperation<ListingInformation> LoadListingInformationByProductIdsAsync(IEnumerable<string> productIds);
function loadListingInformationByProductIdsAsync(productIds)
Public Shared Function LoadListingInformationByProductIdsAsync (productIds As IEnumerable(Of String)) As IAsyncOperation(Of ListingInformation)

Parameters

productIds

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

The list of product IDs by which to filter the ProductListings collection.

Returns

The simulated app listing information, with ProductListings collection filtered by product IDs. If the method fails, it returns an HRESULT error code. If no in-app products are found that match the given product IDs, the ProductListings collection will be empty.

Remarks

Uses the ListingInformation element in the WindowsStoreProxy.xml file as the data source for the members of the returned objects. For more information, see Using the WindowsStoreProxy.xml file with CurrentAppSimulator.

Calling this method requires an internet connection.

Applies to