Spread for ASP.NET 7.0 Product Documentation
BindModel Method
See Also  Support Options
FarPoint.Mvc.Spread Assembly > FarPoint.Mvc.Spread Namespace > MvcSpreadModelBinder Class : BindModel Method


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.

Glossary Item Box

Binds the model by using the specified controller context and binding context.

Syntax

Visual Basic (Declaration) 
Public Overrides Function BindModel( _
   ByVal controllerContext As ControllerContext, _
   ByVal bindingContext As ModelBindingContext _
) As Object
Visual Basic (Usage)Copy Code
Dim instance As MvcSpreadModelBinder
Dim controllerContext As ControllerContext
Dim bindingContext As ModelBindingContext
Dim value As Object
 
value = instance.BindModel(controllerContext, bindingContext)
C# 
public override object BindModel( 
   ControllerContext controllerContext,
   ModelBindingContext 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

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.