共用方式為


KeyValuePairModelBinder<TKey,TValue>.BindModel 方法

定義

使用指定的執行內容和繫結內容來繫結模型。

public:
 virtual 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
override this.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

實作

適用於