EmptyModelValidatorProvider Class

 

Provides an empty validation provider for models that do not require a validator.

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

System.Object
  System.Web.Mvc.ModelValidatorProvider
    System.Web.Mvc.EmptyModelValidatorProvider

No code example is currently available or this language may not be supported.

NameDescription
System_CAPS_pubmethodEmptyModelValidatorProvider()

Initializes a new instance of the EmptyModelValidatorProvider class.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodGetValidators(ModelMetadata, ControllerContext)
System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

MVC requires that models have a validation provider. In order to satisfy this requirement, set Current to null to set the current model validator provider to the EmptyModelValidatorProvider provider.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: