ValueProviderCollection.InsertItem Method
Inserts the specified value-provider object into the collection at the specified index location.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Protected Overrides Sub InsertItem ( _
index As Integer, _
item As IValueProvider _
)
protected override void InsertItem(
int index,
IValueProvider item
)
protected:
virtual void InsertItem(
int index,
IValueProvider^ item
) override
Parameters
- index
Type: System.Int32
The zero-based index location at which to insert the value provider into the collection.
- item
Type: System.Web.Mvc.IValueProvider
The value-provider object to insert.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The item parameter is null reference (Nothing in Visual Basic). |