Windows Dev Center

Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ModelValidator Class

 

Provides a base class for implementing validation logic.

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


public abstract class ModelValidator

NameDescription
System_CAPS_protmethodModelValidator(ModelMetadata, ControllerContext)

Called from constructors in derived classes to initialize the ModelValidator class.

NameDescription
System_CAPS_protpropertyControllerContext

Gets the controller context.

System_CAPS_pubpropertyIsRequired

Gets or sets a value that indicates whether a model property is required.

System_CAPS_protpropertyMetadata

Gets the metadata for the model validator.

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetClientValidationRules()

When implemented in a derived class, returns metadata for client validation.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticGetModelValidator(ModelMetadata, ControllerContext)

Returns a composite model validator for the model.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodValidate(Object)

When implemented in a derived class, validates the object.

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:
© 2015 Microsoft