ValidatableObjectAdapter Class

 

Provides an object adapter that can be validated.

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

Inheritance Hierarchy

System.Object
  System.Web.Mvc.ModelValidator
    System.Web.Mvc.ValidatableObjectAdapter

Syntax

public class ValidatableObjectAdapter : ModelValidator
public ref class ValidatableObjectAdapter : ModelValidator
type ValidatableObjectAdapter = 
    class
        inherit ModelValidator
    end
Public Class ValidatableObjectAdapter
    Inherits ModelValidator

Constructors

Name Description
System_CAPS_pubmethod ValidatableObjectAdapter(ModelMetadata, ControllerContext)

Initializes a new instance of the ValidatableObjectAdapter class.

Properties

Name Description
System_CAPS_protproperty ControllerContext

Gets the controller context.(Inherited from ModelValidator.)

System_CAPS_pubproperty IsRequired

Gets or sets a value that indicates whether a model property is required.(Inherited from ModelValidator.)

System_CAPS_protproperty Metadata

Gets the metadata for the model validator.(Inherited from ModelValidator.)

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetClientValidationRules()

When implemented in a derived class, returns metadata for client validation.(Inherited from ModelValidator.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

System_CAPS_pubmethod Validate(Object)

Validates the specified object.(Overrides ModelValidator.Validate(Object).)

Thread Safety

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

See Also

System.Web.Mvc Namespace

Return to top