Spread for ASP.NET 11 Product Documentation
BindModel Method


FarPoint.Mvc.Spread Assembly > FarPoint.Mvc.Spread Namespace > MvcSpreadModelBinder Class : BindModel Method
The context within which the controller operates. The context information includes the controller, HTTP content, request context, and route data.
The context within which the model is bound. The context includes information such as the model object, model name, model type, property filter, and value provider.
Binds the model by using the specified controller context and binding context.
Syntax
'Declaration
 
Public Overrides Function BindModel( _
   ByVal controllerContext As ControllerContext, _
   ByVal bindingContext As ModelBindingContext _
) As Object
'Usage
 
Dim instance As MvcSpreadModelBinder
Dim controllerContext As ControllerContext
Dim bindingContext As ModelBindingContext
Dim value As Object
 
value = instance.BindModel(controllerContext, bindingContext)

Parameters

controllerContext
The context within which the controller operates. The context information includes the controller, HTTP content, request context, and route data.
bindingContext
The context within which the model is bound. The context includes information such as the model object, model name, model type, property filter, and value provider.

Return Value

The bound object.
Exceptions
ExceptionDescription
The %bindingContext %parameter is null.
See Also

Reference

MvcSpreadModelBinder Class
MvcSpreadModelBinder Members