为什么 StoreContext.GetStoreProductsAsync(productKinds, storeIDs) 只获取当前的 UWP 应用程序?

Why does StoreContext.GetStoreProductsAsync(productKinds, storeIDs) get only current UWP app?

我还有一个 UWP 问题。

我正在尝试获取我在 MS Store 上发布的所有 UWP 应用程序,但似乎有问题:我只能执行当前的一个,尽管我插入了许多商店 ID,那些根据 MS Docs 的建议,来自我的应用程序。

这是代码(当然,在我的代码中我插入了真实的 ID):

            StoreContext context = StoreContext.GetDefault();

            string[] productKinds = { "Application" };
            List<String> filterList = new List<string>(productKinds);
            string[] storeIds = { "firstID", "secondID", "thirdID" };

            StoreProductQueryResult queryResult = await context.GetStoreProductsAsync(filterList, storeIds);

            if (queryResult.ExtendedError == null)
            {
                foreach (var product in queryResult.Products)
                {
                    // Do something with 'product'
                }
            }

嗯,只有returns一项,当前一项。

有没有办法获得其他商店应用程序? 我做错了什么吗?

非常感谢。

GetStoreProductsAsync 仅适用于与该应用关联的产品(即附加组件):

Gets Microsoft Store listing info for the specified products that are associated with the current app. [docs]

要解决问题,您可能需要朝 Microsoft Store collection API and purchase API 的方向看(需要在 Azure 中设置 Web 应用程序)。

除此之外 StoreContext class 在其当前状态下不包含 API 以获取有关其他应用程序及其附加组件的产品信息。