Agility eLetter February, 2004

 

In this issue...

In this issue, we have a detailed article on Storing User Profile in .NET.

 

Abstract: The .NET Security does not permit a .NET application running from a shared network drive or internet to access the local hard drive. How do we then store user specific information like user preferences? The .NET class library provides classes that allow us to access the so called Isolated Storage. Isolated storage is located under the “Documents and Settings” for each user. Different storage may be specified based on the user, assembly and the domain. Isolated storage may be used to store whatever information you please. In this article we look at how to use the Isolated Storage using a simple example. Please visit http://www.agiledeveloper.com/download.aspx to download the complete article from the Agile Developer web site.

Message from us

If you would like any question to be addressed or topic to be discussed, please send us an email at agility@agiledeveloper.com. At the end of the year, one person will be randomly selected from the list of respondents for a special prize. We would like to hear from you.

Please send suggestions, corrections and comments to agility@agiledeveloper.com.

Quiz corner

While serializing using the XmlSerializer in .NET, how do we make the namespace appear in the xml document (as in xmlns:agile="http://www.agiledeveloper.com/ns1")?

Send your response to agility@agiledeveloper.com, and you may become the winner of 2004 Agility special prize. The more quizzes you answer, the better your chances are to be a winner!


Quiz from the past issue

If you do not set the apartment on a thread, what is the default apartment of the thread in .NET?

 

Answer!

The apartment of a thread is relevant only if you make call into COM. When you make a call into COM, by default C# sets it apartment to MTA while VB.NET sets it to STA. The first (partly) correct response came from Keith!

Subscription Information

To subscribe or unsubscribe to the free issues of Agility eLetter, please visit http://www.agiledeveloper.com/eLetter.aspx.

Thus spake...

Do only what only you can do - Edsger Dijkstra