HttpActionContextExtensions.GetBinder Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Retrieves the ModelBindingContext for this HttpActionContext.
Namespace: System.Web.Http.Controllers
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function GetBinder ( _
actionContext As HttpActionContext, _
bindingContext As ModelBindingContext _
) As IModelBinder
public static IModelBinder GetBinder(
this HttpActionContext actionContext,
ModelBindingContext bindingContext
)
[ExtensionAttribute]
public:
static IModelBinder^ GetBinder(
HttpActionContext^ actionContext,
ModelBindingContext^ bindingContext
)
static member GetBinder :
actionContext:HttpActionContext *
bindingContext:ModelBindingContext -> IModelBinder
public static function GetBinder(
actionContext : HttpActionContext,
bindingContext : ModelBindingContext
) : IModelBinder
Parameters
- actionContext
Type: System.Web.Http.Controllers.HttpActionContext
The execution context.
- bindingContext
Type: System.Web.Http.ModelBinding.ModelBindingContext
The binding context.
Return Value
Type: System.Web.Http.ModelBinding.IModelBinder
The ModelBindingContext.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type HttpActionContext. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).