Edit

Share via


ValidatableObjectAdapter Class

Definition

Provides an adapter for objects that implement the IValidatableObject interface.

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

Constructors

ValidatableObjectAdapter(ModelMetadata, ModelBindingExecutionContext)

Initializes a new instance of the ValidatableObjectAdapter class.

Properties

IsRequired

When implemented in a derived class, gets a value that indicates whether the model is required.

(Inherited from ModelValidator)
Metadata

When implemented in a derived class, gets the metadata for the model validator.

(Inherited from ModelValidator)
ModelBindingExecutionContext

When implemented in a derived class, gets the execution context.

(Inherited from ModelValidator)

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)
Validate(Object)

Validates the specified object.

Applies to