ISessionStateItemCollection::Clear Method ()
.NET Framework (current version)
Removes all values and keys from the session-state collection.
Assembly: System.Web (in System.Web.dll)
In implementing the Clear method, you should set the Dirty property to true to indicatethatvalues in the ISessionStateItemCollection implementation have been modified.
The following code example shows an implementation of the Clear method. For an example of a complete implementation of the ISessionStateItemCollection interface, see the example provided for the ISessionStateItemCollection interface overview.
.NET Framework
Available since 2.0
Available since 2.0
Show: