开发者

Isolated Storage

Can I Store a Access Database in开发者_如何学C Isolated Storage? If I can what is the Connection String?


I'm not sure if it will work, but try this:

Type isolatedStorageType = ISStore.GetType();
System.Reflection.PropertyInfo piRootDirectory = isolatedStorageType.GetProperty("RootDirectory", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance);
string fullPath = System.IO.Path.Combine(piRootDirectory.GetValue(ISStore, null).ToString(), fileName);
System.Diagnostics.Process.Start(fullPath);

Once you have the full path, you can use it in your connection string as you normally would.


You can store files in isolated storage, Access Data is a file, so you can

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜