共用方式為


TypeConverterModelBinderProvider.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(如果無法轉換型別,或沒有任何要轉換的值)。

適用於