|
Posted on
2009-08-12 09:37
懒人ABC
阅读( 158)
评论()
编辑
收藏
举报
Code public void SaveToIsolatedStorage(string pKey, string pValue) { IsolatedStorageSettings vAppSettings = IsolatedStorageSettings.ApplicationSettings;
if(vAppSettings.Contains(pKey)) { vAppSettings[pKey] = pValue; } else { vAppSettings.Add(pKey, pValue); }
vAppSettings.Save(); }
public string ReadFromIsolatedStorage(string pKey) { string vRtn = string.Empty;
IsolatedStorageSettings vAppSettings = IsolatedStorageSettings.ApplicationSettings;
if(vAppSettings.Contains(pKey)) { vRtn = vAppSettings[pKey]; }
return vRtn; }
|