TypeMatchModelBinderProvider.GetBinder Method (ControllerContext, ExtensibleModelBindingContext)
Returns a model binder for a model that does not require type conversion.
Namespace: Microsoft.Web.Mvc.ModelBinding
Assembly: Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)
Syntax
public override IExtensibleModelBinder GetBinder(
ControllerContext controllerContext,
ExtensibleModelBindingContext bindingContext
)
public:
virtual IExtensibleModelBinder^ GetBinder(
ControllerContext^ controllerContext,
ExtensibleModelBindingContext^ bindingContext
) override
override GetBinder :
controllerContext:ControllerContext *
bindingContext:ExtensibleModelBindingContext -> IExtensibleModelBinder
Public Overrides 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
The model binder, or null if the attempt to get a model binder is unsuccessful.
See Also
TypeMatchModelBinderProvider Class
Microsoft.Web.Mvc.ModelBinding Namespace
Return to top