ModelValidatorProviderCollection.SetItem Method

Definition

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

protected override void SetItem (int index, System.Web.Mvc.ModelValidatorProvider item);
override this.SetItem : int * System.Web.Mvc.ModelValidatorProvider -> unit
Protected Overrides Sub SetItem (index As Integer, item As ModelValidatorProvider)

Parameters

index
Int32

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

item
ModelValidatorProvider

The new value for the model-validator provider element.

Applies to