ValueProviderFactoryCollection::ClearItems Method ()

 

Removes all elements from the collection.

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

protected:
virtual void ClearItems() override

T:Systems.Collections.ObjectModel.Collection`1.Count is set to zero, and references to other objects from elements of the collection are also released.

This method is an O(n) operation, where n is T:Systems.Collections.ObjectModel.Collection`1.Count.

Return to top
Show: