How to change Directory Name and file name in IsolatedStorage

允我心安 提交于 2020-01-05 08:15:00

问题


Say I have created a few Directories in IsolatedStorage. Here are my problems:
1) How do I change the name of the Directory in IsoloatedStorage?
2) What happens to the files stored in the directory which I have change the name.
3) How do I change the file name that stored in Isolatedstorage Example :
MyCity.txt to FunCity.txt

Thanks


回答1:


You'll have to copy the files and write them again with a new name as described in this post. You can then delete the old file/directory using the DeleteFile or DeleteDirectory methods.

If you're creating a Mango app, then you have access to the MoveFile and MoveDirectory methods.



来源:https://stackoverflow.com/questions/6222222/how-to-change-directory-name-and-file-name-in-isolatedstorage

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!