ModelBinderProvider.GetBinder 方法

定义

当在派生类中重写时,获取模型绑定器。

public:
 abstract System::Web::ModelBinding::IModelBinder ^ GetBinder(System::Web::ModelBinding::ModelBindingExecutionContext ^ modelBindingExecutionContext, System::Web::ModelBinding::ModelBindingContext ^ bindingContext);
public abstract System.Web.ModelBinding.IModelBinder GetBinder (System.Web.ModelBinding.ModelBindingExecutionContext modelBindingExecutionContext, System.Web.ModelBinding.ModelBindingContext bindingContext);
abstract member GetBinder : System.Web.ModelBinding.ModelBindingExecutionContext * System.Web.ModelBinding.ModelBindingContext -> System.Web.ModelBinding.IModelBinder
Public MustOverride Function GetBinder (modelBindingExecutionContext As ModelBindingExecutionContext, bindingContext As ModelBindingContext) As IModelBinder

参数

modelBindingExecutionContext
ModelBindingExecutionContext

该执行上下文。

bindingContext
ModelBindingContext

绑定上下文。

返回

IModelBinder

模型联编程序。

适用于