检查 Windows 10 通用应用上的平台 [英] Check platform on Windows 10 Universal App
本文介绍了检查 Windows 10 通用应用上的平台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何查看我的应用正在运行的平台(Windows/Windows Phone)?
How can I check which platform (Windows / Windows Phone) my app is running?
推荐答案
VersionInfo |versionInfo 属性应该有助于检查平台信息.
VersionInfo | versionInfo property should helps to check the platform information.
var str = Windows.System.Profile.AnalyticsInfo.VersionInfo.DeviceFamily;
if (str == "Windows.Desktop")
{
//...
}
else if (str == "Windows.Mobile")
{
//...
}
这篇关于检查 Windows 10 通用应用上的平台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文