June 2002
Intermediate to advanced
816 pages
28h 12m
English
Clear
Application.Clear( )
Clears the contents of the Application collection.
None
The example clears the contents of the Application collection and writes a message to the Text property of the Message control that includes the current count of the collection, which should be 0:
Sub Page_Load( )
Application.Clear( )
Message.Text = "There are " & Application.Count & _
" items in the Application collection."
End SubThe Clear method, which is new for ASP.NET, clears only the contents of the Application collection itself. It does not clear the contents of the StaticObjects collection.
Read now
Unlock full access