StoreContext.GetAssociatedStoreProductsAsync(IIterable<String>) 方法

定義

取得可從目前應用程式內購買之產品的 Microsoft Store 清單資訊。

public:
 virtual IAsyncOperation<StoreProductQueryResult ^> ^ GetAssociatedStoreProductsAsync(IIterable<Platform::String ^> ^ productKinds) = GetAssociatedStoreProductsAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<StoreProductQueryResult> GetAssociatedStoreProductsAsync(IIterable<winrt::hstring> const& productKinds);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StoreProductQueryResult> GetAssociatedStoreProductsAsync(IEnumerable<string> productKinds);
function getAssociatedStoreProductsAsync(productKinds)
Public Function GetAssociatedStoreProductsAsync (productKinds As IEnumerable(Of String)) As IAsyncOperation(Of StoreProductQueryResult)

參數

productKinds

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

字串陣列,指定您想要取得的產品類型。 如需支援的字串值清單,請參閱 ProductKind 屬性。

傳回

在成功完成時,非同步作業會傳回 StoreProductQueryResult ,以提供相關聯產品和相關錯誤資訊的存取權。

屬性

備註

如需使用此方法的詳細資訊,包括程式碼範例,請參閱 取得應用程式和附加元件的產品資訊

適用於

另請參閱