ValidatableObjectAdapter Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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. |