IModelBinderProvider.GetBinder Method

Returns the model binder for the specified type.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

'Declaration
Function GetBinder ( _
	modelType As Type _
) As IModelBinder
'Usage
Dim instance As IModelBinderProvider 
Dim modelType As Type 
Dim returnValue As IModelBinder 

returnValue = instance.GetBinder(modelType)

Parameters

modelType
Type: System.Type

The type of the model.

Return Value

Type: System.Web.Mvc.IModelBinder
The model binder for the specified type.

Implementations that cannot create the requested type should return Nothing. If the ASP.NET MVC framework cannot find a model binder for a type, the default model binder will be used. Use the DefaultBinder property to set the default model binder. The default model binder for the ASP.NET MVC framework is System.Web.Mvc.DefaultModelBinder. Model binder providers run in order and before static registered providers.

Show: