Windows phone 8 读取Windows Phone 8中应用程序使用的权限

Windows phone 8 读取Windows Phone 8中应用程序使用的权限,windows-phone-8,Windows Phone 8,如何以编程方式读取Windows Phone 8中应用程序使用的权限集?您可以读取WMAppManifest.xml文件 private static void Read() { string ret = string.Empty; try { XElement xe = XElement.Load("WMAppManifest.xml"); //look for Capabilities section here } catch { // Ig

如何以编程方式读取Windows Phone 8中应用程序使用的权限集?

您可以读取
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
  }
}

谢谢你,安东。除了我的应用程序之外,我可以阅读其他应用程序的清单文件吗?不,你不能这样做。每个应用程序都位于自己的沙箱中。每个应用程序只能访问自己的沙盒。