有没有办法在运行时找到 PackageFamilyName? [英] Is there a way to find the PackageFamilyName at runtime?

查看:42
本文介绍了有没有办法在运行时找到 PackageFamilyName?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在运行时找出 PackageFamilyName(如清单中所示)?我查看了/Program Files/WindowsApps 并在那里找不到相关的字符串.找不到任何可以让我这样做的 API...

Is there a way to figure out the PackageFamilyName (as appearing in the manifest) in runtime? I looked in /Program Files/WindowsApps and could not find the relevant string there. Could not find any API that would let me do this...

欢迎提出任何其他想法.

Any other ideas are welcome.

推荐答案

我认为您正在寻找的是 PackageId.FamilyName 可通过 Package.Current.Id.FamilyName 属性获得.

I think what you're looking for is PackageId.FamilyName which is available through the Package.Current.Id.FamilyName property.

来源:MSDN论坛

这篇关于有没有办法在运行时找到 PackageFamilyName?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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