Share via


CollectionModelBinder<TElement>.BindModel Method

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

Namespace:  System.Web.Http.ModelBinding.Binders
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
Public Overridable Function BindModel ( _
    actionContext As HttpActionContext, _
    bindingContext As ModelBindingContext _
) As Boolean
'Usage
Dim instance As CollectionModelBinder
Dim actionContext As HttpActionContext
Dim bindingContext As ModelBindingContext
Dim returnValue As Boolean

returnValue = instance.BindModel(actionContext, _
    bindingContext)
public virtual bool BindModel(
    HttpActionContext actionContext,
    ModelBindingContext bindingContext
)
public:
virtual bool BindModel(
    HttpActionContext^ actionContext, 
    ModelBindingContext^ bindingContext
)
abstract BindModel : 
        actionContext:HttpActionContext * 
        bindingContext:ModelBindingContext -> bool 
override BindModel : 
        actionContext:HttpActionContext * 
        bindingContext:ModelBindingContext -> bool 
public function BindModel(
    actionContext : HttpActionContext, 
    bindingContext : ModelBindingContext
) : boolean

Parameters

Return Value

Type: System.Boolean
true if model binding is successful; otherwise, false.

Implements

IModelBinder.BindModel(HttpActionContext, ModelBindingContext)

See Also

Reference

CollectionModelBinder<TElement> Class

System.Web.Http.ModelBinding.Binders Namespace