共用方式為


GenericModelBinderProvider.GetBinder 方法

定義

取得模型繫結器。

public:
 override System::Web::ModelBinding::IModelBinder ^ GetBinder(System::Web::ModelBinding::ModelBindingExecutionContext ^ modelBindingExecutionContext, System::Web::ModelBinding::ModelBindingContext ^ bindingContext);
public override System.Web.ModelBinding.IModelBinder GetBinder (System.Web.ModelBinding.ModelBindingExecutionContext modelBindingExecutionContext, System.Web.ModelBinding.ModelBindingContext bindingContext);
override this.GetBinder : System.Web.ModelBinding.ModelBindingExecutionContext * System.Web.ModelBinding.ModelBindingContext -> System.Web.ModelBinding.IModelBinder
Public Overrides Function GetBinder (modelBindingExecutionContext As ModelBindingExecutionContext, bindingContext As ModelBindingContext) As IModelBinder

參數

modelBindingExecutionContext
ModelBindingExecutionContext

執行內容。

bindingContext
ModelBindingContext

繫結內容。

傳回

IModelBinder

模型繫結器,如果嘗試取得模型繫結器失敗則為 null

適用於