KeyValuePairModelBinderProvider.GetBinder Method (ControllerContext, ExtensibleModelBindingContext)
Returns a model binder for a key/value pair collection.
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 value provider does not contain a key and a value.
See Also
KeyValuePairModelBinderProvider Class
Microsoft.Web.Mvc.ModelBinding Namespace
Return to top