ComplexModelDtoModelBinder.BindModel Method
Determines whether the specified model is binded.
Namespace: System.Web.Http.ModelBinding.Binders
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Function BindModel ( _
actionContext As HttpActionContext, _
bindingContext As ModelBindingContext _
) As Boolean
'Usage
Dim instance As ComplexModelDtoModelBinder
Dim actionContext As HttpActionContext
Dim bindingContext As ModelBindingContext
Dim returnValue As Boolean
returnValue = instance.BindModel(actionContext, _
bindingContext)
public bool BindModel(
HttpActionContext actionContext,
ModelBindingContext bindingContext
)
public:
virtual bool BindModel(
HttpActionContext^ actionContext,
ModelBindingContext^ bindingContext
) sealed
abstract BindModel :
actionContext:HttpActionContext *
bindingContext:ModelBindingContext -> bool
override BindModel :
actionContext:HttpActionContext *
bindingContext:ModelBindingContext -> bool
public final function BindModel(
actionContext : HttpActionContext,
bindingContext : ModelBindingContext
) : boolean
Parameters
- actionContext
Type: System.Web.Http.Controllers.HttpActionContext
The action context.
- bindingContext
Type: System.Web.Http.ModelBinding.ModelBindingContext
The binding context.
Return Value
Type: System.Boolean
true if the specified model is binded; otherwise, false.
Implements
IModelBinder.BindModel(HttpActionContext, ModelBindingContext)