![](/img/trans.png)
[英]How to use IsolatedStorageFile.GetUserStoreForApplication()
[英]how to use this IsolatedStorageFile isoStore = IsolatedStorageFile.GetUserStoreForApplication(); in WP 8.1
IsolatedStorageFile isoStore = IsolatedStorageFile.GetUserStoreForApplication();
我已经将其修改为存储文件isoStore=StorageFile.________________();
但我在Windows Phone 8.1中找不到类似GetUserStoreForApplication的方法。 如何做到这一点?
您可以使用ApplicationData.LocalFolder获得本地存储文件夹,或者通过ApplicationData.RoamingFolder获得漫游文件夹。
Windows.Storage.StorageFolder localFolder = Windows.Storage.ApplicationData.Current.LocalFolder;
Windows.Storage.StorageFolder roamingFolder = Windows.Storage.ApplicationData.Current.RoamingFolder;
有关使用应用程序数据和设置的更多信息,请参见使用Windows Runtime访问应用程序数据(Windows Runtime应用程序) 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.