ModelBinderProviderCollection.RegisterBinderForGenericType Method (Type, Type)

.NET Framework 4.6 and 4.5

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

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

public void RegisterBinderForGenericType(
	Type modelType,
	Type modelBinderType
)

Parameters

modelType
Type: System.Type

The model type.

modelBinderType
Type: System.Type

The model binder type.

.NET Framework

Supported in: 4.6, 4.5
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft