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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top