我想在這裏列出名稱隔離文件我省在獨立存儲我的代碼是:如何獲得在列表WP8
public async void getfile()
{
string _storageFile = "books.db";
using (var isolatedStorage = IsolatedStorageFile.GetUserStoreForApplication())
{
if (!isolatedStorage.FileExists(_storageFile))
{
}
else
{
using (var isoFileStream = isolatedStorage.OpenFile(_storageFile, FileMode.Open))
{
}
}
}
}
如何獲得所有文件的列表?
我得承認,我很難理解你正在嘗試做。如果你想列出你的文件,你可以使用[GetFileNames](http://msdn.microsoft.com/en-us/library/windowsphone/develop/cc190395(v = vs.105).aspx) – Romasz
試試這個http: //stackoverflow.com/questions/3038770/how-do-you-get-a-flat-listing-of-all-files-in-isolatedstorage –