StoreContext.GetUserCollectionAsync(IIterable<String>) StoreContext.GetUserCollectionAsync(IIterable<String>) StoreContext.GetUserCollectionAsync(IIterable<String>) StoreContext.GetUserCollectionAsync(IIterable<String>) StoreContext.GetUserCollectionAsync(IIterable<String>) Method

Definition

Gets Microsoft Store info for the add-ons of the current app for which the user has purchased.

public : IAsyncOperation<StoreProductQueryResult> GetUserCollectionAsync(IIterable<Platform::String> productKinds)
IAsyncOperation<StoreProductQueryResult> GetUserCollectionAsync(IIterable<winrt::hstring> productKinds) const;
public IAsyncOperation<StoreProductQueryResult> GetUserCollectionAsync(IEnumerable<String> productKinds)
Public Function GetUserCollectionAsync(productKinds As IEnumerable(Of String)) As IAsyncOperation(Of StoreProductQueryResult)
Windows.Services.Store.StoreContext.getUserCollectionAsync(productKinds).done( /* Your success and error handlers */ );

Parameters

productKinds
IEnumerable<String> IEnumerable<String> IEnumerable<String>

An array of strings that specify the types of add-ons for which you want to retrieve info. For a list of the supported string values, see the ProductKind property.

Returns

An asynchronous operation that, on successful completion, returns a StoreProductQueryResult object that contains Microsoft Store info for the add-ons of the current app for which the user has purchased and relevant error info.

Remarks

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

If the current user is not signed in to the Store, the ExtendedError property of the StoreProductQueryResult return value will return the error code 0x80070525 (ERROR_NO_SUCH_USER).

See also