Lingua

StoreContext.GetUserCollectionAsync(IIterable<String>) Metodo

Definizione

Ottiene le informazioni di Microsoft Store per i componenti aggiuntivi dell'app corrente per cui l'utente ha acquistato.

public:
 virtual IAsyncOperation<StoreProductQueryResult ^> ^ GetUserCollectionAsync(IIterable<Platform::String ^> ^ productKinds) = GetUserCollectionAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<StoreProductQueryResult> GetUserCollectionAsync(IIterable<winrt::hstring> const& productKinds);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<StoreProductQueryResult> GetUserCollectionAsync(IEnumerable<string> productKinds);
function getUserCollectionAsync(productKinds)
Public Function GetUserCollectionAsync (productKinds 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 componenti aggiuntivi per cui si desidera recuperare informazioni. Per un elenco dei valori stringa supportati, vedere la proprietà ProductKind .

Valori restituiti

Un'operazione asincrona che, al completamento corretto, restituisce un oggetto StoreProductQueryResult che contiene Microsoft Store info per i componenti aggiuntivi dell'app corrente per cui l'utente ha acquistato e pertinenti informazioni sull'errore.

Attributi

Commenti

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

Se l'utente corrente non ha eseguito l'accesso allo Store, la proprietà ExtendedError del valore restituito StoreProductQueryResult restituirà il codice di errore 0x80070525 (ERROR_NO_SUCH_USER).

Si applica a

Vedi anche