ArrayModelBinderProvider.GetBinder Method

Definition

Returns a model binder for arrays.

public override System.Web.ModelBinding.IModelBinder GetBinder(System.Web.ModelBinding.ModelBindingExecutionContext modelBindingExecutionContext, System.Web.ModelBinding.ModelBindingContext bindingContext);

Parameters

modelBindingExecutionContext
ModelBindingExecutionContext

The execution context.

bindingContext
ModelBindingContext

The binding context.

Returns

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

Remarks

The attempt to get a model binder will be unsuccessful if the model is read-only, if the model is not an array type, or if the value provider's ContainsPrefix method returns false.

Applies to

Produto Versões
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1