StateManagedCollection.Clear Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Removes all items from the StateManagedCollection collection.

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

public void Clear()

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

.NET Framework
Available since 2.0
Return to top