System.Web.SessionState.ISessionStateItemCollection.Clear Method

Removes all values and keys from the session-state collection.

Syntax

public void Clear ()

Remarks

In implementing the ISessionStateItemCollection.Clear method, you should set the ISessionStateItemCollection.Dirty property to true to indicate that values in the System.Web.SessionState.ISessionStateItemCollection implementation have been modified.

Requirements

Namespace: System.Web.SessionState
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0