ModelValidatorProviderCollection.SetItem Method (Int32, ModelValidatorProvider)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Replaces the model-validator provider element at the specified index.

Namespace:   System.Web.ModelBinding
Assembly:  System.Web (in System.Web.dll)

protected override void SetItem(
	int index,
	ModelValidatorProvider item
)

Parameters

index
Type: System.Int32

The zero-based index of the model-validator provider element to replace.

item
Type: System.Web.ModelBinding.ModelValidatorProvider

The new value for the model-validator provider element.

.NET Framework
Available since 4.5
Return to top
Show: