ModelBinderAttribute.GetBinder Method
Retrieves an instance of the model binder.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
'Declaration Public Overrides Function GetBinder As IModelBinder 'Usage Dim instance As ModelBinderAttribute Dim returnValue As IModelBinder returnValue = instance.GetBinder()
Return Value
Type: System.Web.Mvc.IModelBinderA reference to an object that implements the IModelBinder interface.
| Exception | Condition |
|---|---|
| InvalidOperationException | An error occurred while an instance of the model binder was being created. |
Show: