2013-05-13 114 views
2

我曾經使用獨立存儲開發wp7應用程序。現在我想將一些應用程序移植到Windows 8,並且我想使用Windows本地存儲來保存一些東西。對於wp7,我使用常見的獨立存儲設置,但我不知道如何將其代碼更改爲Windows存儲。 我想改變下列代碼Windows.Storage -適用於Windows 8應用程序的Windows存儲

if (!IsolatedStorageSettings.ApplicationSettings.TryGetValue(
this.name, out this.value)) //**Need to change this codes for windows storage** 
{ 
    this.value = this.defaultValue; 
    IsolatedStorageSettings.ApplicationSettings[this.name] = this.value; //**Need to change this codes for windows storage** 
} 

預先感謝您的幫助!

回答

相關問題