ModelBinderDictionary.GetBinder Method (Type)

Visual Studio 2010

Retrieves the model binder for 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

Parameters

modelType
Type: System.Type
The type of the model to retrieve.

Return Value

Type: System.Web.Mvc.IModelBinder
The model binder.

ExceptionCondition
ArgumentNullException

The modelType parameter is Nothing.

Community Additions

ADD
Show: