ValidatableObjectAdapter Class

Definition

Provides an object adapter that can be validated.

public class ValidatableObjectAdapter : System.Web.Mvc.ModelValidator
type ValidatableObjectAdapter = class
    inherit ModelValidator
Public Class ValidatableObjectAdapter
Inherits ModelValidator
Inheritance
ValidatableObjectAdapter

Constructors

ValidatableObjectAdapter(ModelMetadata, ControllerContext)

Initializes a new instance of the ValidatableObjectAdapter class.

Properties

ControllerContext

Gets the controller context.

(Inherited from ModelValidator)
IsRequired

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

(Inherited from ModelValidator)
Metadata

Gets the metadata for the model validator.

(Inherited from ModelValidator)

Methods

GetClientValidationRules()

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

(Inherited from ModelValidator)
Validate(Object)

Validates the specified object.

Applies to