0

我可以将 Access 数据库存储在隔离存储中吗?如果可以的话,连接字符串是什么?

4

2 回答 2

1

我不确定它是否会起作用,但试试这个:

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);

获得完整路径后,您可以像往常一样在连接字符串中使用它。

于 2011-08-17T19:51:49.600 回答
-1

您可以将文件存储在隔离存储中,Access Data 是一个文件,因此您可以

于 2010-08-23T09:45:49.337 回答