Sprog

ModelBinder Class

Definition

Creates instances of a specified type by binding properties and constructor parameters from command line input.

public ref class ModelBinder
public class ModelBinder
type ModelBinder = class
Public Class ModelBinder
Inheritance
ModelBinder
Derived

Constructors

Name Description
ModelBinder(Type)

Properties

Name Description
EnforceExplicitBinding

When set to true, the model binder will only bind constructor parameters or properties that it has been explicitly configured to bind.

ModelDescriptor

The descriptor for the model type that the model binder targets.

ValueDescriptor

A descriptor for the source value

Methods

Name Description
BindMemberFromValue(PropertyInfo, Symbol)

Sets a property using a value descriptor.

CreateInstance(BindingContext)

Creates an instance of the target model type.

UpdateInstance<T>(T, BindingContext)

Updates an instance of the target model type.

Applies to