[UWP]如何检查JumpList API是否可用 [英] [UWP]How to check if JumpList API is available

查看:71
本文介绍了[UWP]如何检查JumpList API是否可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我没有掌握Windows 10 build 10240,但我有报告说我的应用程序在开始时就崩溃了,并且在Windows更新到10586时效果很好。


由于我使用仅在10586上可用的JumpList API,这是唯一可能导致这种情况的嫌疑人,但是有人检查这段代码:

 if(ApiInformation.IsTypePresent(" Windows.UI.StartScreen.JumpList"))
{
if(JumpList.IsSupported())
{

}
}

正确检测到10240中的API不可用?




检查我的应用:分享到语音
文件卡

解决方案

如果它的IsSupported()方法无法正常工作1 0240 build,您可以在Application属性中设置Min版本和目标版本。将Min版本设置为Build 10586.它应该可以解决问题。


谢谢,

Abdul Rehman Aftab


= ========================

如果这回答了您的问题,请将此标记为答案。


I don't have my hands on Windows 10 build 10240, but I have reports that my app crashes on it on the start and works perfectly when Windows is updated to 10586.

As I use JumpList API that is available only on 10586, this is the only suspect that can cause this, but did someone check whether this code:

            if (ApiInformation.IsTypePresent("Windows.UI.StartScreen.JumpList"))
            {
                if (JumpList.IsSupported())
                {

                }
             }

properly detects that the API is not available in 10240?


Check my apps: Share to Speech and File Cards

解决方案

If it IsSupported() method is not working properly for 10240 build, you can set the Min version and targeted version in Application properties. Set the Min version to Build 10586. It should resolve the issue.

Thanks,
Abdul Rehman Aftab

=========================
Please mark this as answer if this answers your question.


这篇关于[UWP]如何检查JumpList API是否可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆