Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ModelBinderProviderCollection.RegisterBinderForType Method (Type, Func<IModelBinder>)

.NET Framework 4.6 and 4.5

Adds a model binder provider to the collection for a non-generic type by using the specified model type and model binder factory.

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

public void RegisterBinderForType(
	Type modelType,
	Func<IModelBinder> modelBinderFactory


Type: System.Type

The model type.

Type: System.Func<IModelBinder>

The model binder factory.

.NET Framework

Supported in: 4.6, 4.5
© 2015 Microsoft