ValueProviderCollection.SetItem Method

Replaces the value provider at the specified index location with a new value provider.

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

abstract SetItem : 
        index:int * 
        item:IValueProvider -> unit  
override SetItem : 
        index:int * 
        item:IValueProvider -> unit

Parameters

index
Type: System.Int32

The zero-based index of the element to replace.

item
Type: System.Web.Mvc.IValueProvider

The new value for the element at the specified index.

ExceptionCondition
ArgumentNullException

The item parameter is a null reference (Nothing in Visual Basic).

Show: