ViewEngineCollection.InsertItem(Int32, IViewEngine) Method

Definition

Inserts an element into the collection at the specified index.

protected override void InsertItem (int index, System.Web.Mvc.IViewEngine item);
override this.InsertItem : int * System.Web.Mvc.IViewEngine -> unit
Protected Overrides Sub InsertItem (index As Integer, item As IViewEngine)

Parameters

index
Int32

The zero-based index at which item should be inserted.

item
IViewEngine

The object to insert.

Exceptions

index is less than zero.-or-index is greater than the number of items in the collection.

The item parameter is null.

Applies to