ModelValidatorProviderCollection.SetItem Method (Int32, ModelValidatorProvider)


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

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


protected override void SetItem(
    int index,
    ModelValidatorProvider item
virtual void SetItem(
    int index,
    ModelValidatorProvider^ item
) override
override SetItem : 
        index:int *
        item:ModelValidatorProvider -> unit
Protected Overrides Sub SetItem (
    index As Integer,
    item As ModelValidatorProvider


  • index
    Type: System.Int32

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

See Also

ModelValidatorProviderCollection Class
System.Web.Mvc Namespace

Return to top