Editar

Partilhar via


ModelValidatorProviderCollection.SetItem Method

Definition

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

protected:
 override void SetItem(int index, System::Web::ModelBinding::ModelValidatorProvider ^ item);
protected override void SetItem (int index, System.Web.ModelBinding.ModelValidatorProvider item);
override this.SetItem : int * System.Web.ModelBinding.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