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
精彩评论