ViewEngineCollection.SetItem(Int32, IViewEngine) Method

Definition

Replaces the element at the specified index.

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

Parameters

index
Int32

The zero-based index of the element to replace.

item
IViewEngine

The new value for the element at the specified index.

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