IModelBinder.BindModel Method (HttpActionContext, ModelBindingContext)
Binds the model to a value by using the specified controller context and binding context.
Namespace: System.Web.Http.ModelBinding
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
bool BindModel(
HttpActionContext actionContext,
ModelBindingContext bindingContext
)
bool BindModel(
HttpActionContext^ actionContext,
ModelBindingContext^ bindingContext
)
abstract BindModel :
actionContext:HttpActionContext *
bindingContext:ModelBindingContext -> bool
Function BindModel (
actionContext As HttpActionContext,
bindingContext As ModelBindingContext
) As Boolean
Parameters
actionContext
Type: System.Web.Http.Controllers.HttpActionContextThe action context.
bindingContext
Type: System.Web.Http.ModelBinding.ModelBindingContextThe binding context.
Return Value
Type: System.Boolean
true if model binding is successful; otherwise, false.
See Also
IModelBinder Interface
System.Web.Http.ModelBinding Namespace
Return to top