如何查看隔离存储(windows phone)中的内容?
How too look what is in the Isolated Storage (windows phone)?
我怎么看,我到现在在隔离存储中保存了什么?
我尝试制作一个用户可以保存更多列表的应用程序。然后选择他想要的列表并显示它。
有一个非常方便的工具可以查看当前在隔离存储中的文件。这是 link.
但是,如果您计划在运行时执行此操作,那么我建议您查看 MSDN 中的以下教程,here
这种方法可能正是您所追求的。
public static List<String> GetAllFiles(string pattern, IsolatedStorageFile storeFile)
{
// Get the root and file portions of the search string.
string fileString = Path.GetFileName(pattern);
List<String> fileList = new List<String>(storeFile.GetFileNames(pattern));
// Loop through the subdirectories, collect matches,
// and make separators consistent.
foreach (string directory in GetAllDirectories("*", storeFile))
{
foreach (string file in storeFile.GetFileNames(directory + "/" + fileString))
{
fileList.Add((directory + "/" + file));
}
}
return fileList;
}
试试这个应用程序。这非常有用,因为它与您的设备和模拟器集成,您可以获得关于数据如何存储在您的模拟器或设备中的完整存储访问权限,并且非常灵活,因为您可以在 运行 时间内操作存储内容。
第 1 步:Link .xap 包处于调试或发布模式
第 2 步:运行 项目,您可以在此处查看内容
我怎么看,我到现在在隔离存储中保存了什么? 我尝试制作一个用户可以保存更多列表的应用程序。然后选择他想要的列表并显示它。
有一个非常方便的工具可以查看当前在隔离存储中的文件。这是 link.
但是,如果您计划在运行时执行此操作,那么我建议您查看 MSDN 中的以下教程,here
这种方法可能正是您所追求的。
public static List<String> GetAllFiles(string pattern, IsolatedStorageFile storeFile)
{
// Get the root and file portions of the search string.
string fileString = Path.GetFileName(pattern);
List<String> fileList = new List<String>(storeFile.GetFileNames(pattern));
// Loop through the subdirectories, collect matches,
// and make separators consistent.
foreach (string directory in GetAllDirectories("*", storeFile))
{
foreach (string file in storeFile.GetFileNames(directory + "/" + fileString))
{
fileList.Add((directory + "/" + file));
}
}
return fileList;
}
试试这个应用程序。这非常有用,因为它与您的设备和模拟器集成,您可以获得关于数据如何存储在您的模拟器或设备中的完整存储访问权限,并且非常灵活,因为您可以在 运行 时间内操作存储内容。
第 1 步:Link .xap 包处于调试或发布模式
第 2 步:运行 项目,您可以在此处查看内容