ViewEngineCollection::RemoveItem Method (Int32)

 

Removes the element at the specified index of the Collection<T>.

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

protected:
virtual void RemoveItem(
	int index
) override

Parameters

index
Type: System::Int32

The zero-based index of the element to remove.

Exception Condition
ArgumentOutOfRangeException

index is less than zero.

-or-

index is equal to or greater than T:System.Collections.ObjectModel.Collection`1.Count

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

Return to top
Show: