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)
'Declaration Public Function GetBinder ( _ modelType As Type _ ) As IModelBinder 'Usage Dim instance As ModelBinderDictionary Dim modelType As Type Dim returnValue As IModelBinder returnValue = instance.GetBinder(modelType)
Parameters
- modelType
- Type: System.Type
The type of the model to retrieve.
| Exception | Condition |
|---|---|
| ArgumentNullException | The modelType parameter is Nothing. |
Show: