Share via


CurrentAppSimulator.LoadListingInformationByKeywordsAsync 方法

定義

以非同步方式載入模擬應用程式清單資訊,並在 ProductListings 集合中傳回符合所有提供關鍵字的應用程式內產品。

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

參數

keywords

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

用來篩選ListInformation物件中傳回之 ProductListings集合的關鍵字清單。

傳回

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

備註

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

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

適用於