BinderTypeModelBinder Class

An Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder for models which specify an Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder using Microsoft.AspNetCore.Mvc.ModelBinding.BindingInfo.BinderType.

Namespace
Microsoft.AspNetCore.Mvc.ModelBinding.Binders
Assemblies
  • Microsoft.AspNetCore.Mvc.Core

Syntax

public class BinderTypeModelBinder : IModelBinder
class Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BinderTypeModelBinder

Constructors

BinderTypeModelBinder(System.Type)

Creates a new Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BinderTypeModelBinder.

Arguments:binderType (System.Type) – The System.Type of the Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder.
public BinderTypeModelBinder(Type binderType)

Methods

BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext)
Return type:System.Threading.Tasks.Task
public Task BindModelAsync(ModelBindingContext bindingContext)