ModelBinderProviderCollection.GetBinder Method

Returns a model binder of the specified type.

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

member GetBinder : 
        modelType:Type -> IModelBinder

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: