ViewEngineCollection.SetItem Method

Replaces the element at the specified index.

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

'Declaration
Protected Overrides Sub SetItem ( _
	index As Integer, _
	item As IViewEngine _
)
'Usage
Dim index As Integer 
Dim item As IViewEngine 

Me.SetItem(index, item)

Parameters

index
Type: System.Int32

The zero-based index of the element to replace.

item
Type: System.Web.Mvc.IViewEngine

The new value for the element at the specified index.

ExceptionCondition
ArgumentOutOfRangeException

index is less than zero.

-or-

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

ArgumentNullException

The item parameter is Nothing.

Show: