ModelBinderProviderCollection.RegisterBinderForType Method (Type, 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.

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

member RegisterBinderForType : 
        modelType:Type *
        modelBinder:IModelBinder -> unit

Parameters

modelType
Type: System.Type

The model type.

modelBinder
Type: System.Web.ModelBinding.IModelBinder

The model binder.

.NET Framework
Available since 4.5
Return to top
Show: