ViewEngineCollection.InsertItem Method (Int32, IViewEngine)

 

Inserts an element into the collection at the specified index.

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

Syntax

protected override void InsertItem(
    int index,
    IViewEngine item
)
protected:
virtual void InsertItem(
    int index,
    IViewEngine^ item
) override
override InsertItem : 
        index:int *
        item:IViewEngine -> unit
Protected Overrides Sub InsertItem (
    index As Integer,
    item As IViewEngine
)

Parameters

  • index
    Type: System.Int32

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

Exceptions

Exception

Condition

ArgumentOutOfRangeException

index is less than zero.

-or-

index is greater than the number of items in the collection.

ArgumentNullException

The item parameter is null.

See Also

ViewEngineCollection Class
System.Web.Mvc Namespace

Return to top