appsetting read write

T

Thomas

I can not do this when using the pocket framework.
public static string UserName

{

get

{

return System.Configuration.ConfigurationManager.AppSettings["UserName"];

}

set

{

System.Configuration.ConfigurationManager.AppSettings.Set("UserName",
value);

}

}



I have no chance to add these assemblies using the pocket framework.

Error 2 The type 'System.Collections.Specialized.NameValueCollection' is
defined in an assembly that is not referenced. You must add a reference to
assembly 'System, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'.

Error 3 Cannot apply indexing with [] to an expression of type
'System.Collections.Specialized.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top