IModelBinder.BindModel 方法

定义

使用指定的执行上下文和绑定上下文将模型绑定到一个值。

public:
 bool BindModel(System::Web::ModelBinding::ModelBindingExecutionContext ^ modelBindingExecutionContext, System::Web::ModelBinding::ModelBindingContext ^ bindingContext);
public bool BindModel (System.Web.ModelBinding.ModelBindingExecutionContext modelBindingExecutionContext, System.Web.ModelBinding.ModelBindingContext bindingContext);
abstract member BindModel : System.Web.ModelBinding.ModelBindingExecutionContext * System.Web.ModelBinding.ModelBindingContext -> bool
Public Function BindModel (modelBindingExecutionContext As ModelBindingExecutionContext, bindingContext As ModelBindingContext) As Boolean

参数

modelBindingExecutionContext
ModelBindingExecutionContext

该执行上下文。

bindingContext
ModelBindingContext

绑定上下文。

返回

Boolean

如果模型绑定成功,则为 true;否则为 false

适用于