Application State - RemoveAll()

G

Guadala Harry

I store a few things in my app's Application state. Sometimes I need to
change them, so I have been calling Application.RemoveAll() using the
following line, and then re-inserting my variables with their new values:

System.Web.HttpContext.Current.Application.RemoveAll();

Is this a safe thing to do? Is it possible that RemoveAll will remove stuff
that ASP.NET, itself needs to have in the Application state? Or can I safely
assume that RemoveAll() removes only the varibles I put into the Application
state.

Thanks!
 

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

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top