Partager via


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)

Syntax

'Declaration
Protected Overrides Sub SetItem ( _
    index As Integer, _
    item As IValueProvider _
)
protected override void SetItem(
    int index,
    IValueProvider item
)
protected:
virtual void SetItem(
    int index, 
    IValueProvider^ item
) override

Parameters

  • index
    Type: System.Int32
    The zero-based index of the element to replace.

Exceptions

Exception Condition
ArgumentNullException

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

See Also

Reference

ValueProviderCollection Class

System.Web.Mvc Namespace