ValidatableObjectAdapter ValidatableObjectAdapter ValidatableObjectAdapter 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
ValidatableObjectAdapterValidatableObjectAdapterValidatableObjectAdapterValidatableObjectAdapter

Constructors

ValidatableObjectAdapter(ModelMetadata, ModelBindingExecutionContext) ValidatableObjectAdapter(ModelMetadata, ModelBindingExecutionContext) ValidatableObjectAdapter(ModelMetadata, ModelBindingExecutionContext) ValidatableObjectAdapter(ModelMetadata, ModelBindingExecutionContext)

Initializes a new instance of the ValidatableObjectAdapter class.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
Validate(Object) Validate(Object) Validate(Object) Validate(Object)

Validates the specified object.

Properties

IsRequired IsRequired IsRequired IsRequired

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

(Inherited from ModelValidator)
Metadata Metadata Metadata Metadata

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

(Inherited from ModelValidator)
ModelBindingExecutionContext ModelBindingExecutionContext ModelBindingExecutionContext ModelBindingExecutionContext

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

(Inherited from ModelValidator)

Applies to