IModelBinder.BindModel Method (HttpActionContext, ModelBindingContext)

 

Binds the model to a value by using the specified controller context and binding context.

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

bool BindModel(
	HttpActionContext actionContext,
	ModelBindingContext bindingContext
)

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 model binding is successful; otherwise, false.

Return to top
Show: