Share via


IModelBinder.BindModel Method

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

'Declaration
Function BindModel ( _
    actionContext As HttpActionContext, _
    bindingContext As ModelBindingContext _
) As Boolean
'Usage
Dim instance As IModelBinder
Dim actionContext As HttpActionContext
Dim bindingContext As ModelBindingContext
Dim returnValue As Boolean

returnValue = instance.BindModel(actionContext, _
    bindingContext)
bool BindModel(
    HttpActionContext actionContext,
    ModelBindingContext bindingContext
)
bool BindModel(
    HttpActionContext^ actionContext, 
    ModelBindingContext^ bindingContext
)
abstract BindModel : 
        actionContext:HttpActionContext * 
        bindingContext:ModelBindingContext -> bool 
function BindModel(
    actionContext : HttpActionContext, 
    bindingContext : ModelBindingContext
) : boolean

Parameters

Return Value

Type: System.Boolean
The bound value.

See Also

Reference

IModelBinder Interface

System.Web.Http.ModelBinding Namespace