ModelBinderDictionary::GetBinder Method
Retrieves the model binder.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
| Name | Description | |
|---|---|---|
![]() | GetBinder(Type^) | Retrieves the model binder for the specified type. |
![]() | GetBinder(Type^, Boolean) | Retrieves the model binder for the specified type or retrieves the default model binder. |
ModelBinderDictionary::GetBinder Method (Type^)
Retrieves the model binder for the specified type.
Parameters
- modelType
-
Type:
System::Type^
The type of the model to retrieve.
| Exception | Condition |
|---|---|
| ArgumentNullException | The modelType parameter is null. |
ModelBinderDictionary::GetBinder Method (Type^, Boolean)
Retrieves the model binder for the specified type or retrieves the default model binder.
Parameters
- modelType
-
Type:
System::Type^
The type of the model to retrieve.
- fallbackToDefault
-
Type:
System::Boolean
true to retrieve the default model binder.
| Exception | Condition |
|---|---|
| ArgumentNullException | The modelType parameter is null. |
Show:
