ArrayModelBinderProvider.GetBinder Method (ModelBindingExecutionContext, ModelBindingContext)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns a model binder for arrays.

Namespace:   System.Web.ModelBinding
Assembly:  System.Web (in System.Web.dll)

public override IModelBinder GetBinder(
	ModelBindingExecutionContext modelBindingExecutionContext,
	ModelBindingContext bindingContext
)

Parameters

modelBindingExecutionContext
Type: System.Web.ModelBinding.ModelBindingExecutionContext

The execution context.

bindingContext
Type: System.Web.ModelBinding.ModelBindingContext

The binding context.

Return Value

Type: System.Web.ModelBinding.IModelBinder

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

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.

.NET Framework
Available since 4.5
Return to top
Show: