System.Web.UI.StateManagedCollection.Clear Method

Removes all items from the System.Web.UI.StateManagedCollection collection.

Syntax

public void Clear ()

Remarks

The StateManagedCollection.OnClear method is called before the StateManagedCollection.Clear method is called, and the StateManagedCollection.OnClearComplete method is called after StateManagedCollection.Clear has finished removing elements from the collection.

Requirements

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