ValidatableObjectAdapter Class
Provides an object adapter that can be validated.
Inheritance Hierarchy
System.Object
System.Web.Mvc.ModelValidator
System.Web.Mvc.ValidatableObjectAdapter
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public Class ValidatableObjectAdapter _
Inherits ModelValidator
'Usage
Dim instance As ValidatableObjectAdapter
public class ValidatableObjectAdapter : ModelValidator
public ref class ValidatableObjectAdapter : public ModelValidator
public class ValidatableObjectAdapter extends ModelValidator
The ValidatableObjectAdapter type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ValidatableObjectAdapter | Initializes a new instance of the ValidatableObjectAdapter class. |
Top
Properties
Name | Description | |
---|---|---|
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.) |
Top
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetClientValidationRules | When implemented in a derived class, returns metadata for client validation. (Inherited from ModelValidator.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from Object.) | |
Validate | Validates the specified object. (Overrides ModelValidator.Validate(Object).) |
Top
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.