Share via


CurrentAppSimulator.LoadListingInformationByProductIdsAsync 方法

定義

以非同步方式載入模擬的應用程式清單資訊,並傳回 ProductListings 集合中符合任何指定產品識別碼的應用程式內產品。

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)

參數

productIds

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

用來篩選 ProductListings 集合的產品識別碼清單。

傳回

模擬的應用程式清單資訊,其中 ProductListings 集合會依產品識別碼篩選。 如果方法失敗,它會傳回 HRESULT 錯誤碼。 如果找不到符合指定產品識別碼的應用程式內產品,ProductListings 集合將會是空的。

備註

使用 WindowsStoreProxy.xml 檔案中的 ListingInformation 元素做為傳回物件成員的資料來源。 如需詳細資訊,請參閱 搭配 CurrentAppSimulator 使用 WindowsStoreProxy.xml 檔案

呼叫這個方法需要網際網路連線。

適用於