StoreContext.GetAssociatedStoreProductsAsync(IIterable<String>) Méthode

Définition

Obtient les informations de liste du Microsoft Store pour les produits qui peuvent être achetés à partir de l’application actuelle.

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)

Paramètres

productKinds

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

Tableau de chaînes qui spécifient les types de produits que vous souhaitez obtenir. Pour obtenir la liste des valeurs de chaîne prises en charge, consultez la propriété ProductKind.

Retours

Opération asynchrone qui, une fois l’exécution réussie, retourne un StoreProductQueryResult qui fournit l’accès aux produits associés et aux informations d’erreur pertinentes.

Attributs

Remarques

Pour plus d’informations sur l’utilisation de cette méthode, y compris un exemple de code, consultez Obtenir des informations sur le produit pour les applications et les modules complémentaires.

S’applique à

Voir aussi