Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ValueProviderCollection::SetItem Method (Int32, IValueProvider^)

.NET Framework (current version)
 

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:
virtual void SetItem(
	int index,
	IValueProvider^ item
) override

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.

Exception Condition
ArgumentNullException

The item parameter is null.

.NET Framework
Available since 4.5
Return to top
Show:
© 2017 Microsoft