我们如何以编程方式读取Windows Phone 8中的应用程序使用的权限集?
答案 0 :(得分:3)
您可以阅读WMAppManifest.xml
文件
private static void Read()
{
string ret = string.Empty;
try
{
XElement xe = XElement.Load("WMAppManifest.xml");
//look for Capabilities section here
}
catch
{
// Ignore errors in case this method is called
// from design time in VS.NET
}
}
http://weblogs.asp.net/psheriff/archive/2011/01/04/get-application-title-from-windows-phone.aspx