-api-id | -api-type |
---|---|
M:Windows.Services.Store.StoreContext.GetUserCollectionAsync(Windows.Foundation.Collections.IIterable{System.String}) |
winrt method |
Gets Microsoft Store info for the add-ons of the current app for which the user has purchased.
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.
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.
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).