Can I get a path for a IsolatedStorage file and read it from external applications?

前端 未结 3 1240
温柔的废话
温柔的废话 2020-12-08 21:54

I want to write a file where an external application can read it, but I want also some of the IsolatedStorage advantages, basically insurance against unexpected exceptions.

3条回答
  •  既然无缘
    2020-12-08 22:19

    Instead of creating a temp file and get the location you can get the path from the store directly:

    var path = store.GetType().GetField("m_RootDir", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(store).ToString();
    

提交回复
热议问题