Share via


IModelBinder.BindModel Method

Binds the model to a value by using the specified controller context and binding context.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Function BindModel ( _
    controllerContext As ControllerContext, _
    bindingContext As ModelBindingContext _
) As Object
Object BindModel(
    ControllerContext controllerContext,
    ModelBindingContext bindingContext
)
Object^ BindModel(
    ControllerContext^ controllerContext, 
    ModelBindingContext^ bindingContext
)

Parameters

Return Value

Type: System.Object
The bound value.

See Also

Reference

IModelBinder Interface

System.Web.Mvc Namespace