2011-09-03 33 views

回答

6

您可以使用Application.Remove,Application.RemoveAllApplication.RemoveAt方法。

2

使用

HttpContext.Current.Application.Remove("variable"); 

此外,設置null是好的,因爲如果你嘗試讀取HttpContext.Current.Application["variable"]並沒有價值在那裏,它將返回null無論如何,但當然更好,如果你想要什麼明確是刪除。

2
HttpContext.Current.Application.Remove(...) 
相關問題