ModelBinderProviderCollection.GetBinder Method

Returns a model binder of the specified type.

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

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

returnValue = instance.GetBinder(modelType)

Parameters

modelType
Type: System.Type

The type of the model binder.

Return Value

Type: System.Web.Mvc.IModelBinder
A model binder of the specified type.

Model binder providers run in order and before static registered providers. The first model binder provider of the specified type is returned. The Binders property provides a static registration point for model binders.

Show: