ComplexTypeModelBinder Class

Definition

Caution

This type is obsolete and will be removed in a future version. Use ComplexObjectModelBinder instead.

IModelBinder implementation for binding complex types.

public ref class ComplexTypeModelBinder : Microsoft::AspNetCore::Mvc::ModelBinding::IModelBinder
public class ComplexTypeModelBinder : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder
[System.Obsolete("This type is obsolete and will be removed in a future version. Use ComplexObjectModelBinder instead.")]
public class ComplexTypeModelBinder : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder
type ComplexTypeModelBinder = class
    interface IModelBinder
[<System.Obsolete("This type is obsolete and will be removed in a future version. Use ComplexObjectModelBinder instead.")>]
type ComplexTypeModelBinder = class
    interface IModelBinder
Public Class ComplexTypeModelBinder
Implements IModelBinder
Inheritance
ComplexTypeModelBinder
Attributes
Implements

Constructors

ComplexTypeModelBinder(IDictionary<ModelMetadata,IModelBinder>)
Obsolete.

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)

Creates a new ComplexTypeModelBinder.

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

Creates a new ComplexTypeModelBinder.

Methods

BindModelAsync(ModelBindingContext)

Attempts to bind a model.

BindProperty(ModelBindingContext)

Attempts to bind a property of the model.

CanBindProperty(ModelBindingContext, ModelMetadata)

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

CreateModel(ModelBindingContext)

Creates suitable Object for given bindingContext.

SetProperty(ModelBindingContext, String, ModelMetadata, ModelBindingResult)

Updates a property in the current Model.

Applies to