FacebookContextModelBinder.BindModel Method
Binds the model to a value by using the specified controller context and binding context.
Namespace: Microsoft.AspNet.Mvc.Facebook.ModelBinders
Assembly: Microsoft.AspNet.Mvc.Facebook (in Microsoft.AspNet.Mvc.Facebook.dll)
Syntax
'Declaration
Public Overridable Function BindModel ( _
controllerContext As ControllerContext, _
bindingContext As ModelBindingContext _
) As Object
'Usage
Dim instance As FacebookContextModelBinder
Dim controllerContext As ControllerContext
Dim bindingContext As ModelBindingContext
Dim returnValue As Object
returnValue = instance.BindModel(controllerContext, _
bindingContext)
public virtual Object BindModel(
ControllerContext controllerContext,
ModelBindingContext bindingContext
)
public:
virtual Object^ BindModel(
ControllerContext^ controllerContext,
ModelBindingContext^ bindingContext
)
abstract BindModel :
controllerContext:ControllerContext *
bindingContext:ModelBindingContext -> Object
override BindModel :
controllerContext:ControllerContext *
bindingContext:ModelBindingContext -> Object
public function BindModel(
controllerContext : ControllerContext,
bindingContext : ModelBindingContext
) : Object
Parameters
- controllerContext
Type: System.Web.Mvc.ControllerContext
The controller context.
- bindingContext
Type: System.Web.Mvc.ModelBindingContext
The binding context.
Return Value
Type: System.Object
The bound value.
Implements
IModelBinder.BindModel(ControllerContext, ModelBindingContext)