Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Creates an instance of the model.
Namespace: System.Web.Http.ModelBinding.Binders
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Protected Overridable Function CreateModel ( _
actionContext As HttpActionContext, _
bindingContext As ModelBindingContext _
) As Object
'Usage
Dim actionContext As HttpActionContext
Dim bindingContext As ModelBindingContext
Dim returnValue As Object
returnValue = Me.CreateModel(actionContext, _
bindingContext)
protected virtual Object CreateModel(
HttpActionContext actionContext,
ModelBindingContext bindingContext
)
protected:
virtual Object^ CreateModel(
HttpActionContext^ actionContext,
ModelBindingContext^ bindingContext
)
abstract CreateModel :
actionContext:HttpActionContext *
bindingContext:ModelBindingContext -> Object
override CreateModel :
actionContext:HttpActionContext *
bindingContext:ModelBindingContext -> Object
protected function CreateModel(
actionContext : HttpActionContext,
bindingContext : ModelBindingContext
) : Object
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.Object
The newly created model object.