Share via


StoreContext.GetAssociatedStoreProductsAsync(IIterable<String>) Method

Definition

Gets Microsoft Store listing info for the products that can be purchased from within the current app.

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)

Parameters

productKinds

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

An array of strings that specify the types of products you want to get. For a list of the supported string values, see the ProductKind property.

Returns

An asynchronous operation that, on successful completion, returns a StoreProductQueryResult that provides access to the associated products and relevant error info.

Attributes

Remarks

For more information about using this method, including a code example, see Get product info for apps and add-ons.

Applies to

See also