Spread ASP.NET 6.0 Product Documentation
BindModel Method
See Also  Send Feedback
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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.