Is there a way to find the PackageFamilyName at runtime?

别来无恙 提交于 2019-12-06 13:49:19

问题


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.


回答1:


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

Source: MSDN Forums



来源:https://stackoverflow.com/questions/15333375/is-there-a-way-to-find-the-packagefamilyname-at-runtime

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!