Lingua

StoreContext.GetStoreProductsAsync Metodo

Definizione

Overload

Nome Descrizione
GetStoreProductsAsync(IIterable<String>, IIterable<String>)

Ottiene le informazioni sulla presentazione in Microsoft Store per i prodotti specificati associati all'app corrente.

GetStoreProductsAsync(IIterable<String>, IIterable<String>, StoreProductOptions)

Ottiene le informazioni sulla presentazione in Microsoft Store per i prodotti specificati associati all'app corrente, con l'opzione per usare un filtro per la query.

GetStoreProductsAsync(IIterable<String>, IIterable<String>)

Ottiene le informazioni sulla presentazione in Microsoft Store per i prodotti specificati associati all'app corrente.

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

Parametri

productKinds

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

Matrice di stringhe che specificano i tipi di prodotti per cui vuoi recuperare le informazioni di presentazione. Per un elenco dei valori stringa supportati, vedere la proprietà ProductKind.

storeIds

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

Matrice delle stringhe ID dello Store per i prodotti per i quali vuoi recuperare le informazioni di presentazione.

Valori restituiti

Operazione asincrona che, al completamento corretto, restituisce un oggetto StoreProductQueryResult che contiene informazioni di presentazione per i prodotti specificati ed eventuali informazioni di errore pertinenti.

Attributi

Commenti

Questo metodo restituisce informazioni di presentazione per i prodotti specificati associati all'app corrente, indipendentemente dal fatto che i prodotti siano attualmente disponibili per l'acquisto all'interno dell'app corrente. Per recuperare informazioni per tutti i prodotti che possono essere attualmente acquistati dall'interno dell'app corrente, usare invece il metodo GetStoreProductsAsync o il metodo GetAssociatedStoreProductsAsync.

L'ID dello Store per un prodotto è disponibile in Centro per i partnere viene restituito anche dalla proprietà StoreId del StoreProduct che rappresenta il prodotto. Per altre informazioni, vedere Store ID.

Per altre informazioni sull'uso di questo metodo, incluso un esempio di codice, vedere Ottenere informazioni sul prodotto per le app e i componenti aggiuntivi.

Vedi anche

Si applica a

GetStoreProductsAsync(IIterable<String>, IIterable<String>, StoreProductOptions)

Ottiene le informazioni sulla presentazione in Microsoft Store per i prodotti specificati associati all'app corrente, con l'opzione per usare un filtro per la query.

public:
 virtual IAsyncOperation<StoreProductQueryResult ^> ^ GetStoreProductsAsync(IIterable<Platform::String ^> ^ productKinds, IIterable<Platform::String ^> ^ storeIds, StoreProductOptions ^ storeProductOptions) = GetStoreProductsAsync;
/// [Windows.Foundation.Metadata.Overload("GetStoreProductsWithOptionsAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<StoreProductQueryResult> GetStoreProductsAsync(IIterable<winrt::hstring> const& productKinds, IIterable<winrt::hstring> const& storeIds, StoreProductOptions const& storeProductOptions);
[Windows.Foundation.Metadata.Overload("GetStoreProductsWithOptionsAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StoreProductQueryResult> GetStoreProductsAsync(IEnumerable<string> productKinds, IEnumerable<string> storeIds, StoreProductOptions storeProductOptions);
function getStoreProductsAsync(productKinds, storeIds, storeProductOptions)
Public Function GetStoreProductsAsync (productKinds As IEnumerable(Of String), storeIds As IEnumerable(Of String), storeProductOptions As StoreProductOptions) As IAsyncOperation(Of StoreProductQueryResult)

Parametri

productKinds

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

Matrice di stringhe che specificano i tipi di prodotti per cui vuoi recuperare le informazioni di presentazione. Per un elenco dei valori stringa supportati, vedere la proprietà ProductKind.

storeIds

IIterable<String>

IEnumerable<String>

IIterable<Platform::String>

IIterable<winrt::hstring>

Matrice delle stringhe ID dello Store per i prodotti per i quali vuoi recuperare le informazioni di presentazione.

storeProductOptions
StoreProductOptions

Oggetto contenente un filtro che verrà utilizzato per la query.

Valori restituiti

Operazione asincrona che, al completamento corretto, restituisce un oggetto StoreProductQueryResult che contiene informazioni di presentazione per i prodotti specificati ed eventuali informazioni di errore pertinenti.

Attributi

Requisiti Windows

Requisiti Descrizione
Famiglia di dispositivi
Windows 10, version 1803 (è stato introdotto in 10.0.17134.0)
API contract
Windows.Services.Store.StoreContract (è stato introdotto in v3.0)

Commenti

Per restituire informazioni solo per i prodotti che possono essere acquistati dall'interno dell'app corrente, aggiungere la stringa di filtro alla proprietà ActionFilters dell'oggetto passato al parametro storeProductOptions. Per ottenere informazioni per tutti i prodotti specificati associati all'app corrente, indipendentemente dal fatto che siano attualmente disponibili per l'acquisto, usare invece l'overload GetStoreProductsAsync.

L'ID dello Store per un prodotto è disponibile in Centro per i partnere viene restituito anche dalla proprietà StoreId del StoreProduct che rappresenta il prodotto. Per altre informazioni, vedere Store ID.

Per altre informazioni sull'uso di questo metodo, incluso un esempio di codice, vedere Ottenere informazioni sul prodotto per le app e i componenti aggiuntivi.

Vedi anche

Si applica a