Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SetItem Method
Collapse the table of content
Expand the table of content

ValueProviderCollection.SetItem Method

.NET Framework 4.6 and 4.5

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

Namespace:  System.Web.ModelBinding
Assembly:  System.Web (in System.Web.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.ModelBinding.IValueProvider

The new value for the element at the specified index.

ExceptionCondition
ArgumentNullException

The item parameter is null.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft