I’m trying to get containers for my app settings and files and i found this code in Microsoft Website
Windows.Storage.ApplicationDataContainer localSettings = Windows.Storage.ApplicationData.Current.LocalSettings;
Windows.Storage.ApplicationDataContainer localFolder = Windows.Storage.ApplicationData.Current.LocalFolder;
but when i paste it to my code it give me an Error

anyone know what is the error ? how can i solve it ?
LocalFolder isn’t a storage container, its a storage folder. Wouldn’t something like this work better?
Windows.Storage.ApplicationDataContainer localSettings = Windows.Storage.ApplicationData.Current.LocalSettings;
Windows.Storage.StorageFolder localFolder = Windows.Storage.ApplicationData.Current.LocalFolder;