ViewEngineCollection::ClearItems Method ()

 

Removes all elements from the Collection<T>.

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

protected:
virtual void ClearItems() override

T:System.Collections.ObjectModel.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:System.Collections.ObjectModel.Count.

Return to top
Show: