StoreContext.GetUserCollectionAsync(IEnumerable<String>) Method

Definition

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

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)

Parameters

productKinds
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

IAsyncOperation<StoreProductQueryResult>

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.

Attributes

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).

Applies to

See also