How to enable/disable metro app setting capabilities?
-
15-06-2021 - |
题
How can I enable/disable programmatically capabilities in a metro app, i.e. capabilities settings defined in the package app manifest such as internet, microphone, location, etc.?
解决方案
I did a Google search, then I fired up the "help" on my copy of MSVS2012RC (the latest/greatest Metro-capable compiler).
Then answer is "you must set capabilities in your Package Manifest, and only in the Package manifest". It appears that capabilities cannot be changed programmatically.
不隶属于 StackOverflow