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

ValueProviderCollection.SetItem Method (Int32, IValueProvider)

 

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)

protected override void SetItem(
	int index,
	IValueProvider item
)

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.

Exception Condition
ArgumentNullException

The item parameter is null.

Return to top
Show:
© 2016 Microsoft