ModelBinderProviderCollection.RegisterBinderForType Method (Type, Func<IModelBinder>)
.NET Framework (current version)
Adds a model binder provider to the collection for a non-generic type by using the specified model type and model binder factory.
Assembly: System.Web (in System.Web.dll)
member RegisterBinderForType : modelType:Type * modelBinderFactory:Func<IModelBinder> -> unit
Parameters
- modelType
-
Type:
System.Type
The model type.
- modelBinderFactory
-
Type:
System.Func<IModelBinder>
The model binder factory.
.NET Framework
Available since 4.5
Available since 4.5
Show: