Spread for ASP.NET 8.0 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 Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

MvcSpreadModelBinder Class
MvcSpreadModelBinder Members

 

 


Copyright © GrapeCity, inc. All rights reserved.