ModelBinder Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
| 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. |