Spread for ASP.NET 10 Product Documentation
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
System.ArgumentNullExceptionThe %bindingContext %parameter is null.
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

MvcSpreadModelBinder Class
MvcSpreadModelBinder Members

 

 


Copyright © GrapeCity, inc. All rights reserved.