ComplexTypeModelBinder ComplexTypeModelBinder ComplexTypeModelBinder Class

Definition

IModelBinder implementation for binding complex types.

public class ComplexTypeModelBinder : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder
type ComplexTypeModelBinder = class
    interface IModelBinder
Public Class ComplexTypeModelBinder
Implements IModelBinder
Inheritance
ComplexTypeModelBinderComplexTypeModelBinderComplexTypeModelBinder
Implements

Constructors

ComplexTypeModelBinder(IDictionary<ModelMetadata,IModelBinder>) ComplexTypeModelBinder(IDictionary<ModelMetadata,IModelBinder>) ComplexTypeModelBinder(IDictionary<ModelMetadata,IModelBinder>)

This constructor is obsolete and will be removed in a future version. The recommended alternative is the overload that also takes an ILoggerFactory.

Creates a new ComplexTypeModelBinder.

ComplexTypeModelBinder(IDictionary<ModelMetadata,IModelBinder>, ILoggerFactory) ComplexTypeModelBinder(IDictionary<ModelMetadata,IModelBinder>, ILoggerFactory) ComplexTypeModelBinder(IDictionary<ModelMetadata,IModelBinder>, ILoggerFactory)

Creates a new ComplexTypeModelBinder.

Methods

BindModelAsync(ModelBindingContext) BindModelAsync(ModelBindingContext) BindModelAsync(ModelBindingContext)
BindProperty(ModelBindingContext) BindProperty(ModelBindingContext) BindProperty(ModelBindingContext)

Attempts to bind a property of the model.

CanBindProperty(ModelBindingContext, ModelMetadata) CanBindProperty(ModelBindingContext, ModelMetadata) CanBindProperty(ModelBindingContext, ModelMetadata)

Gets a value indicating whether or not the model property identified by propertyMetadata can be bound.

CreateModel(ModelBindingContext) CreateModel(ModelBindingContext) CreateModel(ModelBindingContext)

Creates suitable Object for given bindingContext.

SetProperty(ModelBindingContext, String, ModelMetadata, ModelBindingResult) SetProperty(ModelBindingContext, String, ModelMetadata, ModelBindingResult) SetProperty(ModelBindingContext, String, ModelMetadata, ModelBindingResult)

Updates a property in the current Model.

Applies to