SetItem Method
Collapse the table of content
Expand the table of content

ViewEngineCollection.SetItem Method (Int32, IViewEngine)

 

Replaces the element at the specified index.

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

override SetItem : 
        index:int *
        item:IViewEngine -> unit

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.

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.

Return to top
Show:
© 2016 Microsoft