編輯

共用方式為


ModelValidator(ModelMetadata, ModelBindingExecutionContext) Constructor

Definition

Initializes a new instance of the ModelValidator class.

protected:
 ModelValidator(System::Web::ModelBinding::ModelMetadata ^ metadata, System::Web::ModelBinding::ModelBindingExecutionContext ^ modelBindingExecutionContext);
protected ModelValidator (System.Web.ModelBinding.ModelMetadata metadata, System.Web.ModelBinding.ModelBindingExecutionContext modelBindingExecutionContext);
new System.Web.ModelBinding.ModelValidator : System.Web.ModelBinding.ModelMetadata * System.Web.ModelBinding.ModelBindingExecutionContext -> System.Web.ModelBinding.ModelValidator
Protected Sub New (metadata As ModelMetadata, modelBindingExecutionContext As ModelBindingExecutionContext)

Parameters

metadata
ModelMetadata

The metadata.

modelBindingExecutionContext
ModelBindingExecutionContext

The execution context.

Exceptions

The metadata or modelBindingExecutionContext parameter is null.

Applies to