Class TypeConverterModelBinder
- Namespace
- System.Web.Http.ModelBinding.Binders
- Assembly
- System.Web.Http.dll
Maps a browser request to a data object. This type is used when model binding requires conversions using a .NET Framework type converter.
public sealed class TypeConverterModelBinder : IModelBinder
- Inheritance
-
TypeConverterModelBinder
- Implements
- Inherited Members
Constructors
TypeConverterModelBinder()
Initializes a new instance of the TypeConverterModelBinder class.
public TypeConverterModelBinder()
Methods
BindModel(HttpActionContext, ModelBindingContext)
Binds the model by using the specified controller context and binding context.
public bool BindModel(HttpActionContext actionContext, ModelBindingContext bindingContext)
Parameters
actionContext
HttpActionContextThe action context.
bindingContext
ModelBindingContextThe binding context.
Returns
- bool
true if model binding is successful; otherwise, false.