ModelBinderProvider.GetBinder Method (ControllerContext, ExtensibleModelBindingContext)
When overridden in a derived class, gets a model binder.
Namespace: Microsoft.Web.Mvc.ModelBinding
Assembly: Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)
Syntax
public abstract IExtensibleModelBinder GetBinder(
ControllerContext controllerContext,
ExtensibleModelBindingContext bindingContext
)
public:
virtual IExtensibleModelBinder^ GetBinder(
ControllerContext^ controllerContext,
ExtensibleModelBindingContext^ bindingContext
) abstract
abstract GetBinder :
controllerContext:ControllerContext *
bindingContext:ExtensibleModelBindingContext -> IExtensibleModelBinder
Public MustOverride Function GetBinder (
controllerContext As ControllerContext,
bindingContext As ExtensibleModelBindingContext
) As IExtensibleModelBinder
Parameters
controllerContext
Type: System.Web.Mvc.ControllerContextThe controller context.
bindingContext
Type: Microsoft.Web.Mvc.ModelBinding.ExtensibleModelBindingContextThe binding context.
Return Value
Type: Microsoft.Web.Mvc.ModelBinding.IExtensibleModelBinder
A model binder.
See Also
ModelBinderProvider Class
Microsoft.Web.Mvc.ModelBinding Namespace
Return to top