Partager via


ModelValidatorProviderCollection.SetItem Method

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

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

Syntax

'Declaration
Protected Overrides Sub SetItem ( _
    index As Integer, _
    item As ModelValidatorProvider _
)
protected override void SetItem(
    int index,
    ModelValidatorProvider item
)
protected:
virtual void SetItem(
    int index, 
    ModelValidatorProvider^ item
) override

Parameters

  • index
    Type: System.Int32
    The zero-based index of the model-validator provider element to replace.

See Also

Reference

ModelValidatorProviderCollection Class

System.Web.Mvc Namespace