简体   繁体   中英

how to use this IsolatedStorageFile isoStore = IsolatedStorageFile.GetUserStoreForApplication(); in WP 8.1

IsolatedStorageFile isoStore = IsolatedStorageFile.GetUserStoreForApplication();

I had modified this as Storage File isoStore=StorageFile.________________(); but I can't find a method like GetUserStoreForApplication in Windows Phone 8.1. How to get this done?

You can get the local storage folder with ApplicationData.LocalFolder or the roaming folder with ApplicationData.RoamingFolder.

Windows.Storage.StorageFolder localFolder = Windows.Storage.ApplicationData.Current.LocalFolder;
Windows.Storage.StorageFolder roamingFolder = Windows.Storage.ApplicationData.Current.RoamingFolder;

See Accessing app data with the Windows Runtime (Windows Runtime apps) for more info on using application data and settings.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM