Nana has always said that I do not have a text description for writing a blog, but I think it is only possible to directly write the code
WP brothers, isolatedstoragesettings operation class.
Using system; using system. net; using system. windows; using system. windows. controls; using system. windows. documents; using system. windows. ink; using system. windows. input; using system. windows. media; using system. windows. media. animation; using system. windows. shapes; using system. io. isolatedstorage; namespace microblogforwp7.classes. util {public class isolated {static readonly isolatedstorageset=setting = isolatedstorageset.pdf. applicationsettings; # region method // <summary> // obtain the corresponding property value // </Summary> // <Param name = "flag"> </param> // /<returns> </returns> Public static object get (string flag) {try {If (setting. contains (FLAG) {return setting [flag];} else {setting. add (flag, null);} return NULL;} catch {setting. add (flag, null); return NULL ;}} /// <summary> /// obtain the corresponding property value /// </Summary> /// <Param name = "flag"> </param> /// <returns> </returns> Public static bool get <t> (string flag, out t Val) {try {If (setting. contains (FLAG) {return setting. trygetvalue <t> (flag, out Val);} else {setting. add (flag, null);} val = default (t); Return false;} catch {setting. add (flag, null); val = default (t); Return false ;}} /// <summary> /// set the property value /// </Summary> /// <Param name = "flag"> </param> /// <Param name = "Val"> </param> Public static void set (string flag, object Val) {try {If (setting. contains (FLAG) {setting [flag] = val;} else {setting. add (flag, Val );}} catch {}}/// <summary> /// remove the attribute value /// </Summary> /// <Param name = "flag"> </param> Public static bool remove (string flag) {try {return setting. remove (FLAG) ;}catch {return false ;}# endregion }}