GetBinder Method (Type)
Collapse the table of content
Expand the table of content

ModelBinderDictionary.GetBinder Method (Type)

Retrieves the model binder for the specified type.

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

public IModelBinder GetBinder(
	Type modelType
)

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 null.

Show:
© 2016 Microsoft