Редагувати

Поділитися через


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);
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

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