ModelValidator Class

Provides a base class for implementing validation logic.

Namespace:  System.Web.Http.Validation
Assembly:  System.Web.Http (in System.Web.Http.dll)

public abstract class ModelValidator

The ModelValidator type exposes the following members.

  NameDescription
Protected methodModelValidatorInitializes a new instance of the ModelValidator class.
Top

  NameDescription
Public propertyIsRequiredGets a value that indicates whether a model property is required.
Protected propertyValidatorProvidersGets or sets an enumeration of validator providers.
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodStatic memberGetModelValidatorReturns a composite model validator for the model.
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Public methodValidateValidates a specified object.
Top

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