This is because instantiating ApplicationsSettings throws an exception. If you add the following to your constructor, you should be fine;

try { settings = IsolatedStorageSettings.ApplicationSettings; } catch (System.IO.IsolatedStorage.IsolatedStorageException e) { // handle exception }


这是因为有可能出现异常,需要在构造函数中作出判断,抛出异常。

相关文章:

  • 2021-08-05
  • 2022-02-03
  • 2022-12-23
  • 2021-08-04
  • 2022-12-23
  • 2021-08-01
  • 2022-12-23
  • 2021-09-04
猜你喜欢
  • 2021-07-29
  • 2021-07-16
  • 2022-12-23
  • 2021-10-20
  • 2021-05-10
  • 2022-12-23
相关资源
相似解决方案