ValidatableObjectAdapter(ModelMetadata, ModelBindingExecutionContext) 构造函数

定义

初始化 ValidatableObjectAdapter 类的新实例。

public:
 ValidatableObjectAdapter(System::Web::ModelBinding::ModelMetadata ^ metadata, System::Web::ModelBinding::ModelBindingExecutionContext ^ context);
public ValidatableObjectAdapter (System.Web.ModelBinding.ModelMetadata metadata, System.Web.ModelBinding.ModelBindingExecutionContext context);
new System.Web.ModelBinding.ValidatableObjectAdapter : System.Web.ModelBinding.ModelMetadata * System.Web.ModelBinding.ModelBindingExecutionContext -> System.Web.ModelBinding.ValidatableObjectAdapter
Public Sub New (metadata As ModelMetadata, context As ModelBindingExecutionContext)

参数

metadata
ModelMetadata

元数据。

context
ModelBindingExecutionContext

该执行上下文。

适用于