TypeMatchModelBinderProvider.GetBinder(ModelBindingExecutionContext, ModelBindingContext) TypeMatchModelBinderProvider.GetBinder(ModelBindingExecutionContext, ModelBindingContext) TypeMatchModelBinderProvider.GetBinder(ModelBindingExecutionContext, ModelBindingContext) Method

Definition

Returns a model binder for a model that does not require type conversion.

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

Parameters

modelBindingExecutionContext
ModelBindingExecutionContext ModelBindingExecutionContext ModelBindingExecutionContext

The execution context.

bindingContext
ModelBindingContext ModelBindingContext ModelBindingContext

The binding context.

Returns

The model binder, or null if the attempt to get a model binder is unsuccessful.

Applies to